一次遇到 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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM