【问题标题】:Nagios monitoring ok but SSL Handshake errorNagios 监控正常但 SSL 握手错误
【发布时间】:2016-07-08 05:03:03
【问题描述】:

大家好,

我在这里遇到了一个奇怪的情况。 Nagios 很好地监控了我的远程 linux 服务器,但是当我尝试运行 check_nrpe -H 时,出现 SSL 握手错误。我没有来自 Nagios 服务器的相同错误。

[code]
[root@agent1 ~]# /usr/local/nagios/libexec/check_nrpe -H master
CHECK_NRPE: Error - Could not complete SSL handshake.
[root@agent1 ~]# 
[root@master ~]# /usr/local/nagios/libexec/check_nrpe -H agent1
NRPE v2.15
[root@master ~]# 
[/code]

知道怎么解决吗?

【问题讨论】:

    标签: nagios


    【解决方案1】:

    在 only_from 列表中检查您的 nrpe 配置文件和您的 IP。

    nano /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 = IP1 IP2 IP3
    }
    

    【讨论】:

    • 发帖前我已经查过Sir,它有Nagios Server的IP。
    【解决方案2】:

    正确的答案是用 ssl 头文件重新编译 nrpe。

    ./configure --enable-ssl
    

    一般文档中到处给出的其余步骤都是正确的。

    【讨论】:

      猜你喜欢
      • 2017-02-11
      • 1970-01-01
      • 1970-01-01
      • 2015-02-03
      • 2016-08-08
      • 2016-04-13
      • 1970-01-01
      • 1970-01-01
      • 2011-04-16
      相关资源
      最近更新 更多