CHECK_NRPE: Socket timeout after 30 seconds

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have 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: Socket timeout after 30 seconds

Postby CedricF » Fri Nov 23, 2018 6:18 am

Hi,

On a Nagios alert, we have the following message:

Code: Select all
***** Nagios *****

Notification Type: PROBLEM

Service: DISKS
Host: XXXXXX
Address: XXXXXX
State: CRITICAL

Date / Time: Fri Nov 23 09:54:53 CET 2018

Additional Info:

CHECK_NRPE: Socket timeout after 30 seconds.


The last line attracts our attention. I first look at the KB about it on the site but nothing conclusive about this case. I go around the internet but I think I'm appropriate. Does anyone have a suggestion to me about it.

Warning: I'm new to Nagios and I'm starting to learn it.

cordially
CedricF
 
Posts: 12
Joined: Thu Nov 15, 2018 4:37 am

Re: CHECK_NRPE: Socket timeout after 30 seconds

Postby mcapra » Mon Nov 26, 2018 9:52 am

That typically means the check_nrpe plugin was unable to reach the NRPE server after a specified period (30 seconds by default). More info on NRPE in general:
https://github.com/NagiosEnterprises/nrpe

From the check_nrpe plugin's help menu:
Code: Select all
-t, --timeout=INTERVAL:STATE
    INTERVAL  Number of seconds before connection times out (default=30)
    STATE     Check state to exit with in the event of a timeout (default=CRITICAL)
    Timeout STATE must be a valid state name (case-insensitive) or integer:
    (OK, WARNING, CRITICAL, UNKNOWN) or integer (0-3)


In a nutshell, Nagios Core was unable to reach the agent on host XXXXXX after trying for 30 seconds.

To get more specific than that, we'd need to see the exact check_command you're running and have knowledge of exactly what check_nrpe is connecting to. It could be a standard NRPE server on a Linux box, an NSClient++ server running on a windows box, some windows port of NRPE, or some other bespoke server.
Former Nagios employee
http://www.mcapra.com/
User avatar
mcapra
 
Posts: 3462
Joined: Thu May 05, 2016 3:54 pm

Re: CHECK_NRPE: Socket timeout after 30 seconds

Postby npolovenko » Mon Nov 26, 2018 5:01 pm

@CedricF, On top of everything @mcapra requested, I'd also like to see the nrpe.cfg config file if its NRPE agent on a Linux server or the nsclient.ini if that's a windows server.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
npolovenko
Support Tech
 
Posts: 2492
Joined: Mon May 15, 2017 5:00 pm

Re: CHECK_NRPE: Socket timeout after 30 seconds

Postby CedricF » Tue Nov 27, 2018 10:45 am

Thank you for your feedback. I look at this as soon as possible and I'll come back to you.
CedricF
 
Posts: 12
Joined: Thu Nov 15, 2018 4:37 am

Re: CHECK_NRPE: Socket timeout after 30 seconds

Postby npolovenko » Tue Nov 27, 2018 2:56 pm

@CedricF, Sounds good.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
npolovenko
Support Tech
 
Posts: 2492
Joined: Mon May 15, 2017 5:00 pm

Re: CHECK_NRPE: Socket timeout after 30 seconds

Postby CedricF » Wed Nov 28, 2018 7:25 am

Hi,

I just met with a colleague who solved the problem on his side during my lunch break by telling me that I could never find because there is a big peculiarity on the server that was recently restart and being done had deleted a Nagios profile. He has just recreated it and he will explain this in detail later. I think I'm still going to ask you a lot before being comfortable with Nagios, because the adventure is not over.

And thanks for your help.

Best regards.

Cédric.
CedricF
 
Posts: 12
Joined: Thu Nov 15, 2018 4:37 am

Re: CHECK_NRPE: Socket timeout after 30 seconds

Postby npolovenko » Wed Nov 28, 2018 5:01 pm

@CedricF, Glad you were able to resolve this. I will close this thread but feel free to open new ones in the future!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
npolovenko
Support Tech
 
Posts: 2492
Joined: Mon May 15, 2017 5:00 pm


Return to Nagios Core

Who is online

Users browsing this forum: Fess [Nagios Bot] and 24 guests