CHECK_NRPE: Error - Could not complete SSL handshake.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
lafargeuser
Posts: 341
Joined: Thu Sep 27, 2012 12:23 am

CHECK_NRPE: Error - Could not complete SSL handshake.

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: CHECK_NRPE: Error - Could not complete SSL handshake.

Post by lmiltchev »

Did you forget to restart the daemon after making the changes in /etc/xinetd.d/nrpe?

Code: Select all

service xinetd restart
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:

Code: Select all

./check_nrpe -H localhost
Be sure to check out our Knowledgebase for helpful articles and solutions!
lafargeuser
Posts: 341
Joined: Thu Sep 27, 2012 12:23 am

Re: CHECK_NRPE: Error - Could not complete SSL handshake.

Post by lafargeuser »

./check_nrpe -H localhost
NRPE v2.12
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: CHECK_NRPE: Error - Could not complete SSL handshake.

Post by slansing »

Can you show us the command you were trying to monitor the other server with?
lafargeuser
Posts: 341
Joined: Thu Sep 27, 2012 12:23 am

Re: CHECK_NRPE: Error - Could not complete SSL handshake.

Post by lafargeuser »

./check_nrpe -H IPADRESS
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: CHECK_NRPE: Error - Could not complete SSL handshake.

Post 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:

Code: Select all

/etc/xinetd.d/nrpe
Also, do you have telnet installed on your Nagios server? If so, please show the output from the following:

Code: Select all

telnet ip.of.remote.host 5666
lafargeuser
Posts: 341
Joined: Thu Sep 27, 2012 12:23 am

Re: CHECK_NRPE: Error - Could not complete SSL handshake.

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: CHECK_NRPE: Error - Could not complete SSL handshake.

Post by slansing »

You will need to open port 5666 on tcp/udp in order for NRPE to properly communicate with the server.
Locked