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.
dsdonut
Posts: 32
Joined: Mon Mar 21, 2011 1:21 pm

Re: CHECK_NRPE: Error - Could not complete SSL handshake

Post by dsdonut »

I couldn't run the script locally because I had xinetd configured to only allow nrpe commands from our nagios box. Once I commented that out in the xinetd config and restarted xinetd, it let me run it.

both my monitored hosts, and my nagios server have NRPE v2.12

I was just told that there is something called NRPE+ that is newer than NRPE. Is that what I should be running? I installed the version of NRPE that is linked to in the Nagios admin guide.
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: CHECK_NRPE: Error - Could not complete SSL handshake

Post by nscott »

I am unaware of a NRPE+, and a quick Google search didn't reveal much. Perhaps the source of the information was thinking of NSClient++. Did the/var/log/messages give any revealing information?
Nicholas Scott
Former Nagios employee
dsdonut
Posts: 32
Joined: Mon Mar 21, 2011 1:21 pm

Re: CHECK_NRPE: Error - Could not complete SSL handshake

Post by dsdonut »

The only thing that I'm seeing in /var/log/messages is this:

xinetd[3333]: FAIL: nrpe per_source_limit from=IP address of our Nagios server

The log mainly just contains a ton of nrpe starts/exits:

xinetd[3333]: START: nrpe pid=22906 from=IP address of our Nagios server
xinetd[3333]: EXIT: nrpe status=0 pid=22906 duration=0(sec)
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: CHECK_NRPE: Error - Could not complete SSL handshake

Post by nscott »

It may be possible that there are an absurd amount of Nagios processes that were zombified. Juding from the FAIL: nrpe per_source_limit from source. Are you seeing any zombie processes?
Nicholas Scott
Former Nagios employee
dsdonut
Posts: 32
Joined: Mon Mar 21, 2011 1:21 pm

Re: CHECK_NRPE: Error - Could not complete SSL handshake

Post by dsdonut »

How would I check for zombie processes?
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: CHECK_NRPE: Error - Could not complete SSL handshake

Post by nscott »

Code: Select all

ps -el | grep ' Z '
Note quotes and spacing are important.
Nicholas Scott
Former Nagios employee
dsdonut
Posts: 32
Joined: Mon Mar 21, 2011 1:21 pm

Re: CHECK_NRPE: Error - Could not complete SSL handshake

Post by dsdonut »

So far, no zombie procs have been found.

I've set a check to look for zombie procs every 5 minutes.

I just got the SSL handshake error on one server and checked for zombies as quickly as I could. There were none.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: CHECK_NRPE: Error - Could not complete SSL handshake

Post by mguthrie »

This is the default nrpe command:
$USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c $ARG1$ $ARG2$

What happens when you increase the timeout to say, 45 seconds?
dsdonut
Posts: 32
Joined: Mon Mar 21, 2011 1:21 pm

Re: CHECK_NRPE: Error - Could not complete SSL handshake

Post by dsdonut »

Changed the timeout setting to 45 seconds this morning.

Just a few minutes ago I got the CHECK_NRPE: Error - Could not complete SSL handshake. alert from one of the servers.
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: CHECK_NRPE: Error - Could not complete SSL handshake

Post by nscott »

Do you use NTP on your servers? It seems far-fetched, but theoretically this could an issue with improper times set that are varying 'just enough' to cause SSL to fail.

Do you have multiple boxes checking each individual server? How many checks total would you say you're running on these servers per minute?
Nicholas Scott
Former Nagios employee
Locked