[Nagiosplug-help] i have problem in plugin timeout

lars.bruun-hansen at nordea.com lars.bruun-hansen at nordea.com
Sun Feb 26 02:05:14 CET 2006


Venkatesh,

 

I had the same problem as you and for my part the solution was to look
at the timeout accepted on check_nrpe rather than looking at the timeout
on the individual plugins. You can do that using the -t option on
check_nrpe. Even if the check plugin has an option to set the timeout
(as Hans suggests) you might experience that check_nrpe will in any case
time out before this. Therefore the timeout on check_nrpe is crucial.

 

For example I have two "remote_check" commands defined.

One uses the check_nrpe default timeout (10 sec) and the other allows 40
secs for the command to execute:

 

define command{

        command_name    remote_check

        command_line    /usr/local/nagios/libexec/check_nrpe -H
$HOSTADDRESS$ -c $ARG1$ -a $ARG2$ $ARG3$ $ARG4$ $ARG5$ $ARG6$

        }

 

#  Same as above but allow the remote check to run for long time. 

#  Used for checks that take long to execute, e.g. checks that requires
parsing of logs, etc.

define command{

        command_name    remote_check_long

        command_line    /usr/local/nagios/libexec/check_nrpe -H
$HOSTADDRESS$ -t 40 -c $ARG1$ -a $ARG2$ $ARG3$ $ARG4$ $ARG5$ $ARG6$

        } 

 

 

rgds,

 

Lars


  _____  

From: nagiosplug-help-admin at lists.sourceforge.net
[mailto:nagiosplug-help-admin at lists.sourceforge.net] On Behalf Of Hans
Engelen
Sent: 26. februar 2006 00:25
To: Nagiosplug-help at lists.sourceforge.net
Subject: Re: [Nagiosplug-help] i have problem in plugin timeout


I think there are two places you need to look.
 
First the plugin itself, i.e. the check_dig plugin for example allows
you to set a timeout and there are a couple of other no doubt. Changing
this is a matter of changing the check command in checkcommands.cfg (or
where ever you keep your check command configs) to include the proper
parameter and timeout value to suit your needs. In the case of the
check_dig example this is -t xx where xx is the number of seconds. 
 
The second place is in the main Nagios config (nagios.cfg) where the
global maximum times are defined for different sets of actions. There
you will find : 
 
service_check_timeout=30
host_check_timeout=30
event_handler_timeout=30
notification_timeout=30
ocsp_timeout=5
perfdata_timeout=30
 
I would say one of these two possebilities is where you need to look.
 
Cheers,
Hans
 
On 2/25/06, Venkatesh <venki_lin at fastmail.us> wrote: 

	hello all,
	
	i get lots of mail alerts as the plugin goes critical after some
times
	ie 10 seconds and will be getting lot of mails, how can i
increase the 
	plugin timeout time and stop getting lots of mails from that.
please
	advice and help me everyone
	
	regards
	venki
	--
	Venkatesh
	venki_lin at fastmail.us
	
	--
	http://www.fastmail.fm - mmm... Fastmail...
	
	
	
	-------------------------------------------------------
	This SF.Net email is sponsored by xPML, a groundbreaking
scripting language 
	that extends applications into web and mobile media. Attend the
live webcast
	and join the prime developer group breaking into this new coding
territory!
	
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
	_______________________________________________
	Nagiosplug-help mailing list
	Nagiosplug-help at lists.sourceforge.net
	https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
	::: Please include plugins version (-v) and OS when reporting
any issue. 
	::: Messages without supporting info will risk being sent to
/dev/null
	


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20060226/b197a53c/attachment.html>


More information about the Help mailing list