首页 文章

无法为nagios配置远程nrpe插件

提问于
浏览
0

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

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

输出: -

CHECK_NRPE:10秒后套接字超时 . (对于它给出的一些服务)CHECK_NRPE:错误 - 无法完成SSL握手 .

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

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

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

此致,Gaurav .

3 回答

  • 0

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

    你可以试试下面的支票吗?

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

    您可能需要检查防火墙 .

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

  • 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
    

相关问题