CHECK_NRPE: Error - Could not complete SSL handshake.
-
- Posts: 80
- Joined: Tue Feb 09, 2016 12:17 pm
- Location: Montreal, Quebec, Canada
CHECK_NRPE: Error - Could not complete SSL handshake.
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)
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)
Re: CHECK_NRPE: Error - Could not complete SSL handshake.
After you changed that, did you restart xinetd/nrpe?
Which one of those commands you use is going to depend on how NRPE was installed.
Code: Select all
service xinetd restart
or
service nrpe restart
Former Nagios Employee.
me.
me.
-
- Posts: 80
- Joined: Tue Feb 09, 2016 12:17 pm
- Location: Montreal, Quebec, Canada
Re: CHECK_NRPE: Error - Could not complete SSL handshake.
sorry I should have been clearer - yes I did. No change.
-
- Posts: 80
- Joined: Tue Feb 09, 2016 12:17 pm
- Location: Montreal, Quebec, Canada
Re: CHECK_NRPE: Error - Could not complete SSL handshake.
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)
# 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)
Re: CHECK_NRPE: Error - Could not complete SSL handshake.
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.
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
-
- Posts: 80
- Joined: Tue Feb 09, 2016 12:17 pm
- Location: Montreal, Quebec, Canada
Re: CHECK_NRPE: Error - Could not complete SSL handshake.
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
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
Re: CHECK_NRPE: Error - Could not complete SSL handshake.
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.
Can you try appending -t 60 to the end of your command as well? It could be hitting a timeout throttle.
Former Nagios Employee
-
- Posts: 80
- Joined: Tue Feb 09, 2016 12:17 pm
- Location: Montreal, Quebec, Canada
Re: CHECK_NRPE: Error - Could not complete SSL handshake.
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.
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.
- 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.
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
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.
-
- Posts: 80
- Joined: Tue Feb 09, 2016 12:17 pm
- Location: Montreal, Quebec, Canada
Re: CHECK_NRPE: Error - Could not complete SSL handshake.
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.
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.