plugin timeout

Stephane s_list at basiclink.com
Mon Nov 25 18:28:37 CET 2002


Evan,

Most commands have their own timeout setting that defaults to 10
seconds. If you run the command with the "-h" switch you can see it
there:

$ /usr/local/nagios/libexec/check_ping -h
<snip>
-t, --timeout=INTEGER
   optional specified timeout in second (Default: 10)
<snip>

So you should add "-t 30" (for 30 seconds) to your line:
command_line    $USER1$/check_ping -H $HOSTADDRESS$ -w 3000,80% -c
5000,100% -p 1 -t 30

Hope that helps.

Stephane

Monday, November 25, 2002, 5:41:45 AM, you wrote:

EM> I'm still having trouble locating the setting that will let me increase the
EM> plugin timeout from 10 seconds to something higher.  An example of the error
EM> is below

EM> It was suggested i check service_check_timeout and host_check_timeout.  The
EM> following is their default settings, un aletered from install"
EM> service_check_timeout=60
EM> host_check_timeout=30

EM> My command_check_interval is set to 15s.  My check_ping and check_host_alive
EM> are both:
EM> command_line    $USER1$/check_ping -H $HOSTADDRESS$ -w 3000,80% -c 5000,100%
EM> -p 1

EM> I can't find a setting of "10" in any of my configs and I'm not sure if I'm
EM> supposed to modify the check_ping to get rid of this.
EM> -----------Sample alert:--------------
EM> **** Nagios 1.0b6 *****
EM> Notification Type: PROBLEM
EM> Host: skipper-soho-ext
EM> State: DOWN
EM> Address: XXX.XXX.XXX.XXX
EM> Info: CRITICAL - Plugin timed out after 10 seconds
EM> Date/Time: Mon Nov 25 08:32:49 EST 2002



EM> -------------------------------------------------------
EM> This sf.net email is sponsored by:ThinkGeek
EM> Welcome to geek heaven.
EM> http://thinkgeek.com/sf
EM> _______________________________________________
EM> Nagios-users mailing list
EM> Nagios-users at lists.sourceforge.net
EM> https://lists.sourceforge.net/lists/listinfo/nagios-users



-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en




More information about the Users mailing list