我已经在Centos机器上配置了nagios服务器。我正在尝试向此nagios服务器版本4.2.0添加rhel 6.6机器。在配置和测试NRPE时,有一个步骤要检查配置为/usr/local/nagios/libexec/check_nrpe -H localhost
我在此步骤遇到以下错误:
CHECK_NRPE: Error - Could not complete SSL handshake.
所以,我使用了-n
选项:/usr/local/nagios/libexec/check_nrpe -n -H localhost
它显示了一个新的错误,如下所示:
CHECK_NRPE: Error receiving data from daemon.
系统日志只说:
Aug 31 14:31:10 xxxxx xinetd[18730]: START: nrpe pid=18781 from=::1
Aug 31 14:31:10 xxxxx xinetd[18781]: FAIL: nrpe address from=::1
Aug 31 14:31:10 xxxxx xinetd[18730]: EXIT: nrpe status=0 pid=18781 duration=0(sec)
关于出现这种情况的任何想法?
检查nrpe.cfg文件中的allowed_hosts参数。您还需要允许localhost。
CHECK_NRPE:错误-无法完成SSL握手。解决方案:允许主机在nrpe.conf文件中如果启用了ssl,请在命令中删除-n。
/usr/local/nagios/var/nagios.log
处的日志是否有任何错误。 nrpe.cfg
可能是问题所在,主要是语法错误。nrpe.cfg
中检查命令定义。5666
打开。/etc/xinetd.d/nrpe
处检查允许的主机条目。当nrpe无法正确读取其配置时,基本上会出现此问题。