Page 1 of 1
CHECK_NRPE: Error - Could not complete SSL handshake.
Posted: Mon Mar 18, 2013 8:59 am
by lafargeuser
Not able monitor linux server using XI, returns below error.
CHECK_NRPE: Error - Could not complete SSL handshake.
# 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 = nagiosserverip
Re: CHECK_NRPE: Error - Could not complete SSL handshake.
Posted: Mon Mar 18, 2013 9:37 am
by lmiltchev
Did you forget to restart the daemon after making the changes in /etc/xinetd.d/nrpe?
Do you get the same error if you run the check locally? Add the localhost to the "only_from" line in "/etc/xinetd.d/nrpe" on the remote server :
Code: Select all
only_from = 127.0.0.1,nagiosserverip
then run the following command on the remote machine, and show the output:
Re: CHECK_NRPE: Error - Could not complete SSL handshake.
Posted: Mon Mar 18, 2013 9:50 am
by lafargeuser
./check_nrpe -H localhost
NRPE v2.12
Re: CHECK_NRPE: Error - Could not complete SSL handshake.
Posted: Mon Mar 18, 2013 9:52 am
by slansing
Can you show us the command you were trying to monitor the other server with?
Re: CHECK_NRPE: Error - Could not complete SSL handshake.
Posted: Mon Mar 18, 2013 9:57 am
by lafargeuser
./check_nrpe -H IPADRESS
Re: CHECK_NRPE: Error - Could not complete SSL handshake.
Posted: Mon Mar 18, 2013 10:05 am
by slansing
You should be able to get a response back from just running check_nrpe itself to the server as you are, the IP needs to be correct in the allowed_ line, and port 5666 must be open, those should be the only two things causing this error. Can you show us the following file from the remote machine, noting out any public IP's:
Also, do you have telnet installed on your Nagios server? If so, please show the output from the following:
Re: CHECK_NRPE: Error - Could not complete SSL handshake.
Posted: Mon Mar 18, 2013 10:17 am
by lafargeuser
# 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,10.nagiosserver
telnet IP 5666
Trying IP...
telnet: connect to address IP: Connection refused
telnet: Unable to connect to remote host: Connection refused
Re: CHECK_NRPE: Error - Could not complete SSL handshake.
Posted: Mon Mar 18, 2013 10:26 am
by slansing
You will need to open port 5666 on tcp/udp in order for NRPE to properly communicate with the server.