Nagios 的错误及解决方法:
1、  CHECK_NRPE: Error - Could not complete SSL handshake.
在监控端10.11
# telnet 10.100.0.18 5666
Connection closed by foreign host.
出现此错误,证明监控端不能与被监控端的nrpe 联系,
 
10.100.0.18:
# netstat –tnlp |grep 5666
tcp         0      0 10.100.0.18:5666            0.0.0.0:*                   LISTEN      18384/nrpe
手动重启nrpe服务:kill 18384
# rm –rf /var/run/nrpe.pid  特别注意要删除其pid文件
# /usr/local/nagios/bin/nrpe –c /usr/local/nagios/etc/nrpe.cfg –d
  重新测试:
# telnet 10.100.0.18 5666
Trying 10.100.0.18...
Connected to 10.100.0.18.
Escape character is '^]'.
此时就可以了。
2、 UNKNOWN: iostat not found or is not executable by the nagios user.
Check_cpu .sh 插件出现此错误,有两种情况:
(1)       没有安装iostat
# yum install –y sysstat
(2)       Nagios 用户没有权限,也就是此脚本的属主属组不是nagios

                 # chown nagios.nagios check_cpu.sh