1

我已经在 Centos 机器上配置了 nagios 服务器。我正在尝试将 rhel 6.6 机器添加到此 nagios 服务器版本 4.2.0。在配置 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)

知道为什么会出现这种情况吗?

4

3 回答 3

1
  • 检查日志/usr/local/nagios/var/nagios.log是否有任何错误。这可能是 的问题nrpe.cfg,主要是语法错误。
  • 检查您的命令定义也在nrpe.cfg.
  • 还要确保端口5666是开放的。
  • 如果您在 xinetd 下使用 nrpe,请检查允许的主机条目/etc/xinetd.d/nrpe

当 nrpe 无法正确读取其配置时,基本上会出现此问题。

于 2016-09-16T14:06:49.543 回答
0

CHECK_NRPE:错误 - 无法完成 SSL 握手。解决方案:如果启用了 ssl,则允许 nrpe.conf 文件中的主机删除命令中的 -n。

于 2018-05-30T06:25:09.657 回答
0

检查 nrpe.cfg 文件中的 allowed_hosts 参数。您也需要允许 localhost。

于 2016-08-31T11:06:33.807 回答