Plugin timed out after 10 seconds

Andreas Ericsson ae at op5.se
Tue Oct 26 10:06:36 CEST 2004


nagios at mm.quex.org wrote:
> On Mon, Oct 25, 2004 at 05:24:23PM -0500, Rudy Montemayor wrote:
> 
> 
>>I have been getting a few notification messages of this type and I'm
>>sure it's due to our network; however having said that how and where
>>do I increase the timeout period to say 20 seconds.
>>
>>Notification Type: PROBLEM
>>
>>Service: Check /ORACLE/BP1/ORAARCH
>>Host: HCIBP1 BW Prod
>>State: CRITICAL
>>CHECK_NRPE: Socket timeout after 10 seconds.
> 
> 
> This one looks like the plugin itself is enforcing the timeout,
> so look for a command-line switch to adjust the timeout.
> 
> 
>>Also like this:
>>
>>Notification Type: PROBLEM
>>Host: PRT204-Calgary
>>State: DOWN
>>Info: CRITICAL - Plugin timed out after 10 seconds
> 
> 
> This one looks to me like Nagios is timing it out itself, so for
> that one check the main config.
> 

Umm, no. If that was nagios then the above would also be nagios. This is 
the 'default' plugin output for networking plugins that time out. 
check_nrpe does it a bit differently so as to distinguish between the 
check_nrpe plugin timing out and the remote plugin it's executing doing 
the same.

> 
>>The next time the service is checked it recovers. Where is this 10
>>second limit set at?
> 
> 
> Check the values of  service_check_timeout  and  host_check_timeout
> in the main configuration file.  Note that host checks, when they
> need to be done, kind of slow everything else down so it's better
> if they don't take ages and ages to run...
> 

Ignore that, and check for the -t option in your checkcommands file.

> Also, since host checks aren't repeated X number of times before
> the host is declared down,

That depends on max_check_attempts, but host checks are done in a 
serialized manner, so a temporary spike lasting longer than 
max_check_attempts * plugin timeout will render a critical.

> you may want to write a wrapper around
> it to repeat the test 2 or 3 times if you have hosts that are a
> little bit flaky, but you don't care if they stop responding for
> a short period of time.
> 

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Lead Developer


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list