我已经安装了包括nrpe和nagios插件的nagios服务器。它的工作正常。但是,我正在尝试使用nagios服务器安装nrpe和nagios插件以进行远程主机监视,完成配置后,我正在下面的命令下进行测试:
/usr/local/nagios/libexec/check_nrpe -H localhost
输出:
CHECK_NRPE: Socket timeout after 10 seconds. (And for some of the services its giving)
CHECK_NRPE: Error - Could not complete SSL handshake.
端口5666正在该服务器上监听。
有人可以让我知道要执行上述命令的正确结果还要进行哪些其他更改。
如果需要有关配置的更多详细信息,也请告诉我。
有时这也可能意味着当NRPE守护程序未与SSL选项一起运行时(或者相反),服务器尝试使用SSL执行检查。
您可以尝试像下面那样运行检查吗?
/usr/local/nagios/libexec/check_nrpe -H localhost -n
您可能需要检查防火墙。
还请确保同时运行nagios和nrpe守护程序。
您应该已安装openssl和openssl-devel
aptitude install openssl openssl-devel
您正在使用Xinetd吗?
如果是,则应在/etc/xinetd.d/nrpe中检查服务配置
您应该有这样的东西:
# default: on
# description: NRPE (Nagios Remote Plugin Executor)
service nrpe{
flags = REUSE
socket_type = stream
port = 5666
wait = no
user = nagios
group = nagios
server = /usr/local/nagios/bin/nrpe
server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd
log_on_failure += USERID
disable = no
only_from = 127.0.0.1 <YouNagiosServerIP>
}
最后:
service xinetd restart