Page 1 of 1

Check_nrpe V3.2.1 error

Posted: Thu Mar 28, 2019 5:47 pm
by padu_3891
Hello Team,

We have recently upgraded to nagios 4.4.2 and check_nrpe version 3.2.1, getting below error intermittently.

check_nrpe: Error: (nerrs = 0)(!log_opts) Could not complete SSL handshake with 10.229.136.3: rc=0 SSL-error=5
nagios: SERVICE ALERT: ARANT102;FLEXSENSE-AGENT;CRITICAL;SOFT;1;CHECK_NRPE: Error - Could not connect to 10.229.136.3. Check system logs on 10.229.136.3

Can you please help on this?

Re: Check_nrpe V3.2.1 error

Posted: Fri Mar 29, 2019 12:37 pm
by cdienger
What version of the nrpe agent is on the client?

Try running the check_nrpe command with the -2 option.

Re: Check_nrpe V3.2.1 error

Posted: Mon Apr 01, 2019 10:10 am
by padu_3891
on the client, nrpe version 2, I am using check command with -2 option only. Still getting below error.

CHECK_NRPE: Error - Could not connect to 10.229.136.3. Check system logs on 10.229.136.3

Details:

Nagios version 4.4.2
Nrpe on nagios server 3.2.1
NRpe on client version 2


Please let me know if any additional details required.

Re: Check_nrpe V3.2.1 error

Posted: Mon Apr 01, 2019 3:15 pm
by cdienger
Edit the nrpe.cfg on the client side and enable debugging in the file:

debug=1

then restart the client and tail /var/log/messages:

tail -f /var/log/messages

or on a Ubuntu system it would be /var/log/syslog:

tail -f /var/log/syslog

While that's running, run the check_nrpe command again on the Nagios server and watch the log for any details.

Re: Check_nrpe V3.2.1 error

Posted: Tue Apr 02, 2019 7:21 am
by padu_3891
Hello,

The issues are on the windows servers.
Enabled debugging on nsclient.ini file on the windows server and found the below error.

2019-04-02 14:03:09: e:c:\build\nscp\include\socket/connection.hpp:134: Failed to read data

Please advice.

Thx.

Re: Check_nrpe V3.2.1 error

Posted: Wed Apr 03, 2019 9:52 am
by padu_3891
I have set -u flag on check_nrpe to receive connection error as unknown alert.
It works for all the alerts except the below alert.

CRITICAL;SOFT;1;CHECK_NRPE: Error - Could not connect to . Check system logs on

I am receiving critical alerts only for the above pattern.

Can you please advice to change this alert from critical to unknown?

Re: Check_nrpe V3.2.1 error

Posted: Wed Apr 03, 2019 3:18 pm
by cdienger
Please PM me a copy of the nsclient.ini file.

What version of nsclient++ is this?

What is the full command that you are running on the XI server?