Nagios监视正常但SSL握手错误
问题描述:
我在这里有一个奇怪的情况。我的远程linux服务器由Nagios监视,但是当我尝试运行check_nrpe -H时,我收到SSL握手错误。我不会从Nagios服务器那里得到同样的错误。
[code]
[[email protected] ~]# /usr/local/nagios/libexec/check_nrpe -H master
CHECK_NRPE: Error - Could not complete SSL handshake.
[[email protected] ~]#
[[email protected] ~]# /usr/local/nagios/libexec/check_nrpe -H agent1
NRPE v2.15
[[email protected] ~]#
[/code]
任何想法如何解决它?
答
在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
}
答
正确答案是用ssl头文件重新编译nrpe。
./configure --enable-ssl
在一般文献中随处可见的其余步骤是正确的。
我已经检查过,发布之前先生,它有Nagios服务器的IP。 – learner