zabbix添加任务计划和sshd文件修改key

UserParameter=sshd,sudo awk '/PasswordAuthentication/{if ( $2 == "no" ) {print "OK"} else {print "NOT OK"}}' /etc/ssh/sshd_config
UserParameter=sshdroot,sudo awk '/PermitRootLogin/{if ( $2 == "no" ) {print "OK"} else {print "NOT OK"}}' /etc/ssh/sshd_config
原文地址:https://www.cnblogs.com/jonnter/p/7725214.html