CentOS - CHECK_NRPE: Error - Could not complete SSL handshak

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
[email protected]
Posts: 7
Joined: Fri Aug 14, 2015 1:42 pm

CentOS - CHECK_NRPE: Error - Could not complete SSL handshak

Post by [email protected] »

We have noticed that the CHECK_NRPE: Error - Could not complete SSL handshake happens, but then the agent after another few checks works - any ideas as to what might be going on here - we have this happening on several of our CentOS monitored hosts
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: CentOS - CHECK_NRPE: Error - Could not complete SSL hand

Post by jdalrymple »

Hi [email protected]

I heard through the grapevine that you're using DNS to resolve your XI server. While I think this is a good practice it is important that your DNS infrastructure is solid and consistent for good results. Let me share with you some notes I have about the way DNS works on a Linux host running the NRPE daemon:
my notes wrote:xinetd:

- At xinetd start time it does a forward lookup to get the address for "only_from" - this doesn't seem to matter though
- Every time a request comes in there is a reverse lookup. If the proper name isn't returned in the reverse lookup the connection fails with "CHECK_NRPE: Error - Could not complete SSL handshake."

nrpe -d:

- Every time a check_nrpe request comes in a forward lookup is done, if the IP matches it works, if the record doesn't match check_nrpe fails with "CHECK_NRPE: Error - Could not complete SSL handshake."
Is it possible that you have multiple DNS servers being resolved and not all of them are resolving the XI server properly? Maybe to test you can take a trouble host and change it to IP - just for testing purposes?
[email protected]
Posts: 7
Joined: Fri Aug 14, 2015 1:42 pm

Re: CentOS - CHECK_NRPE: Error - Could not complete SSL hand

Post by [email protected] »

Thanks for the reply and that could be the case here, I will take once of the troubled hosts and will change it's allow_only to the Nagios XI server's IP address.
[email protected]
Posts: 7
Joined: Fri Aug 14, 2015 1:42 pm

Re: CentOS - CHECK_NRPE: Error - Could not complete SSL hand

Post by [email protected] »

I tested on one of the troubled CentOS hosts being monitored..I had seen a few quick criticals on it stating ( CHECK_NRPE: Socket timeout after 30 seconds ) , but they stopped...still continuing to monitor this host to see how the FQDN to IP test is working. Thanks again for your help troubleshooting this with us
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: CentOS - CHECK_NRPE: Error - Could not complete SSL hand

Post by jolson »

Be sure to keep us up to date if you encounter any difficulties. Thanks!
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
Locked