好人,
我有一个奇怪的情况。我的远程Linux服务器很好地受Nagios监控,但当我尝试运行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]
知道怎么解决吗?
答案 0 :(得分:0)
在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
}
答案 1 :(得分:0)
正确答案是使用ssl标头重新编译nrpe。
./configure --enable-ssl
一般文档中随处可见的休息步骤是正确的。