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.
trafalgargirl
Posts: 80
Joined: Tue Feb 09, 2016 12:17 pm
Location: Montreal, Quebec, Canada

CHECK_NRPE: Error - Could not complete SSL handshake.

Post by trafalgargirl »

Hi all

A new error appeared yesterday with one of the clients I have been monitored on Nagios.
CHECK_NRPE: Error - Could not complete SSL handshake.

The server in question is running Ubuntu 12.04. I checked the nrpe.cfg file on the server and for some reason the IP address was changed to something other than my nagios server - so I have corrected that.

Still getting the issues though. Any other thoughts?

Thanks

(oh and still a newbie)
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

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

Post by hsmith »

After you changed that, did you restart xinetd/nrpe?

Code: Select all

service xinetd restart
or
service nrpe restart
Which one of those commands you use is going to depend on how NRPE was installed.
Former Nagios Employee.
me.
trafalgargirl
Posts: 80
Joined: Tue Feb 09, 2016 12:17 pm
Location: Montreal, Quebec, Canada

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

Post by trafalgargirl »

sorry I should have been clearer - yes I did. No change.
trafalgargirl
Posts: 80
Joined: Tue Feb 09, 2016 12:17 pm
Location: Montreal, Quebec, Canada

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

Post by trafalgargirl »

I double checked the nrpe file under xinetd.d and have the following:
# 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 = correct IP address
}
nrpe (END)
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

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

Post by tmcdonald »

We have quite a few pages worth of troubleshooting for NRPE in this doc:

https://assets.nagios.com/downloads/nag ... utions.pdf

I'd take a look at that, run through everything in section III, and let us know if you still need assistance.
Former Nagios employee
trafalgargirl
Posts: 80
Joined: Tue Feb 09, 2016 12:17 pm
Location: Montreal, Quebec, Canada

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

Post by trafalgargirl »

Hi all

I have indeed gone through the help doc - and everything looks as it should. I believe I mentioned (but me worth repeating...) that this was initially working but then stopped. So these two reasons are why I am at a bit of a loss....

Thanks
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

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

Post by rkennedy »

What happens if you run the check with -n? Does it return a result?

Can you try appending -t 60 to the end of your command as well? It could be hitting a timeout throttle.
Former Nagios Employee
trafalgargirl
Posts: 80
Joined: Tue Feb 09, 2016 12:17 pm
Location: Montreal, Quebec, Canada

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

Post by trafalgargirl »

Hi all

I am sorry for the late reply on this one: this had to go to the back burner since we had some other emergencies. Now of course this has become one...

I finally got access to the nagios server... so I ran the following at eloyd's suggestion:

[root@ip-10-182-83-244 nagiosxi]# /usr/local/nagios/libexec/check_nrpe -H target ip -n
CHECK_NRPE: Error receiving data from daemon.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

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

Post by Box293 »

Can you show us the steps you followed in this guide, including the commands executed and the output produced:

https://assets.nagios.com/downloads/nag ... utions.pdf
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
trafalgargirl
Posts: 80
Joined: Tue Feb 09, 2016 12:17 pm
Location: Montreal, Quebec, Canada

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

Post by trafalgargirl »

Here is what I have gone through:

nrpe: allowed_hosts=127.0.0.1,5X.XXX.XX.XX

xinetd: only_from = 127.0.0.1 5X.XXX.XX.XXX

root@ip-172-31-28-147:~# service xinetd restart
xinetd stop/waiting
xinetd start/running, process 29321

root@ip-172-31-28-147:/etc/init.d# service nagios-nrpe-server stop
* Stopping nagios-nrpe nagios-nrpe [ OK ]
root@ip-172-31-28-147:/etc/init.d# service nagios-nrpe-server start
* Starting nagios-nrpe nagios-nrpe

root@ip-172-31-28-147:/etc/init.d# service xinetd status
xinetd start/running, process 29321

I also double checked the firewall rules in AWS (where the server is hosted) and see that indeed 5666 is open.
You do not have the required permissions to view the files attached to this post.
Locked