Check_nrpe V3.2.1 error

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
padu_3891
Posts: 50
Joined: Thu Sep 05, 2013 10:12 pm

Check_nrpe V3.2.1 error

Post 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?
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Check_nrpe V3.2.1 error

Post by cdienger »

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

Re: Check_nrpe V3.2.1 error

Post 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.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Check_nrpe V3.2.1 error

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
padu_3891
Posts: 50
Joined: Thu Sep 05, 2013 10:12 pm

Re: Check_nrpe V3.2.1 error

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

Re: Check_nrpe V3.2.1 error

Post 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?
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Check_nrpe V3.2.1 error

Post 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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked