一次遇到 CHECK_NRPE: Error - Could not complete SSL handshake.

环境:CentOS 6.4,源码安装nrpe-2.15

安装nrpe已经几十次了,没想到今天又遇到这个错误,用以前的方法无法解决,现记录如下。

# /usr/local/nagios/libexec/check_nrpe -H localhost
CHECK_NRPE: Error - Could not complete SSL handshake.

解决方法:

因为测试的时候 127.0.0.1并不报错

# /usr/local/nagios/libexec/check_nrpe -H 127.0.0.1
NRPE v2.15
所以试着在/etc/xinetd.d/nrpe 的 "only_from" 选项后面增加 localhost,发现测试结果正确了。

# cat /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 localhost
}

# /etc/init.d/xinetd restart

# /usr/local/nagios/libexec/check_nrpe -H localhost
NRPE v2.15

posted @ 2014-02-18 21:11  秦韧  阅读(4947)  评论(0编辑  收藏  举报