首页 > 其他 > 详细

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

时间:2014-02-19 16:27:43      阅读:416      评论:0      收藏:0      [点我收藏+]

环境: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

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

原文:http://www.cnblogs.com/cloudsix/p/3554909.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!