Check_nrpe V3.2.1 error

This forum is intended for the discussion of Nagios Core development. Feature requests, patches, bug fixes, and all types of development-related discussions are welcome!

NOTE: The SourceForge.net nagios-devel mailing list has been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

Check_nrpe V3.2.1 error

Postby padu_3891 » Thu Mar 28, 2019 5:47 pm

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?
padu_3891
 
Posts: 50
Joined: Thu Sep 05, 2013 10:12 pm

Re: Check_nrpe V3.2.1 error

Postby cdienger » Fri Mar 29, 2019 12:37 pm

What version of the nrpe agent is on the client?

Try running the check_nrpe command with the -2 option.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
cdienger
Support Tech
 
Posts: 3454
Joined: Tue Feb 07, 2017 11:26 am

Re: Check_nrpe V3.2.1 error

Postby padu_3891 » Mon Apr 01, 2019 10:10 am

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.
padu_3891
 
Posts: 50
Joined: Thu Sep 05, 2013 10:12 pm

Re: Check_nrpe V3.2.1 error

Postby cdienger » Mon Apr 01, 2019 3:15 pm

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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
cdienger
Support Tech
 
Posts: 3454
Joined: Tue Feb 07, 2017 11:26 am

Re: Check_nrpe V3.2.1 error

Postby padu_3891 » Tue Apr 02, 2019 7:21 am

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.
padu_3891
 
Posts: 50
Joined: Thu Sep 05, 2013 10:12 pm

Re: Check_nrpe V3.2.1 error

Postby padu_3891 » Wed Apr 03, 2019 9:52 am

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?
padu_3891
 
Posts: 50
Joined: Thu Sep 05, 2013 10:12 pm

Re: Check_nrpe V3.2.1 error

Postby cdienger » Wed Apr 03, 2019 3:18 pm

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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
cdienger
Support Tech
 
Posts: 3454
Joined: Tue Feb 07, 2017 11:26 am


Return to Nagios Core Development

Who is online

Users browsing this forum: No registered users and 5 guests