zabbix 对/etc/ssh/sshd_config文件的监控 但status为unknowen
原因为该文件没有被访问的权限:
# ll /etc/ssh/sshd_config -rw------- 1 root root 3891 Apr 20 10:09 /etc/ssh/sshd_config
授权后再看:
[root@86 ~]# chmod +r /etc/ssh/sshd_config [root@86 ~]# ll /etc/ssh/sshd_config -rw-r--r-- 1 root root 3891 Apr 20 10:09 /etc/ssh/sshd_config
过几秒刷新后问题解决!!!
Configuration----->Hosts-------->Host list----->目标机-----TrIgger
Name:/etc/ssh/sshd_config has been changed on {HOST.NAME}
Expression:{86:vfs.file.cksum[/etc/ssh/sshd_config].diff()}=1
联系方式QQ:326528263 EMAIL:clnking@163.com 网名:bass 分享技术 突破难点 创新思维