无法为nagios配置远程nrpe插件

时间:2013-08-06 10:47:54

标签: linux monitoring nagios nrpe

我安装了nagios服务器,包括nrpe& nagios插件。它工作正常。 但是我正在尝试安装nrpe&用于使用nagios服务器进行远程主机监控的nagios插件,配置完成后&我正在运行以下测试命令: -

/ usr / local / nagios / libexec / check_nrpe -H localhost

输出: -

CHECK_NRPE:10秒后套接字超时。 (并为其提供的一些服务) CHECK_NRPE:错误 - 无法完成SSL握手。

端口5666正在侦听该服务器。

任何人都可以让我知道为了获得上述命令的正确结果还需要做些什么更改。

如果您需要有关配置的更多详细信息,请告知我们。

此致 拉夫。

3 个答案:

答案 0 :(得分:0)

有时这也可能意味着服务器尝试使用SSL执行检查,而NRPE守护程序未使用SSL选项运行(或反过来)。

您可以尝试运行下面的检查吗?

/usr/local/nagios/libexec/check_nrpe -H localhost -n

答案 1 :(得分:0)

您可能需要检查防火墙。

还要确保nagios和nrpe守护进程都在运行。

答案 2 :(得分:0)

您应该安装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
相关问题