【问题标题】:Not able to configure remote nrpe plugins for nagios无法为 nagios 配置远程 nrpe 插件
【发布时间】:2013-08-06 10:47:54
【问题描述】:

我已经安装了 nagios 服务器,包括 nrpe 和 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 正在侦听该服务器。

谁能告诉我要进行哪些其他更改才能获得上述命令的正确结果。

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

【问题讨论】:

  • 显示你的“/usr/local/nagios/etc/nrpe.cfg” serverport serveradress nrpe_user allowedhost
  • 我同意 A3R。听起来链接一个未正确调整的 nrpe.cfg

标签: linux monitoring nagios nrpe


【解决方案1】:

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

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

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

【讨论】:

    【解决方案2】:

    您可能需要检查防火墙。

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

    【讨论】:

      【解决方案3】:

      你应该已经安装了 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
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2016-06-27
        • 2023-03-21
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多