标签:nrpe
客户端安装nrpe插件:Ubuntu:
编辑nrpe配置文件
allowed_hosts=127.0.0.1,10.0.0.2?? (默认为allowed_hosts=127.0.0.1)dont_blame_nrpe=1
:wq
启动nrpe
Redhat:?
?command[check_cpu]=sudo /usr/lib64/nagios/plugins/check_snmp_load.pl -H 127.0.0.1 -C ‘xxxxx‘ -w 80 -c 90 --perf
allowed_hosts=127.0.0.1,10.0.0.2?? (默认为allowed_hosts=127.0.0.1)
dont_blame_nrpe=1
:wq
启动nrpe
nagios ALL=(ALL) NOPASSWD:/usr/lib64/nagios/plugins/*
#Defaults ? ?requiretty
:wq
?记得开防火墙端口(199、5666,即snmp和nrpe)
-A INPUT–p tcp –dport 199 –j ACCEPT
-A INPUT–p tcp –dport 5666 –j ACCEPT
:wq
标签:nrpe
原文地址:http://blog.51cto.com/yangzhiming/2085968