Timeout larger than 10 seconds
Quanah Gibson-Mount
quanah at stanford.edu
Tue Dec 16 09:51:58 CET 2003
--On Monday, December 15, 2003 2:51 PM -0600 "C. Bensend"
<benny at bennyvision.com> wrote:
>
>> There is a value in nagios.cfg you have to update. service_timeout or
>> something like that.
>
> Yes - for me, that has always been overridden by the 10 second timeout
> in common.h. I adjusted the values in nagios.cfg long ago, it was only
> when I adjusted it in common.h and rebuilt the plugin that it worked
> for me.
There are two timeouts to deal with
1) service_check_timeout
which is how long the Nagios process will let a check run before killing it
2) The plugins internal default timeout
This is usually 10 seconds.
So to get a normal plugin to run, for say, 60 seconds, and have the
potential to let any plugin run up to 90 seconds, you would want to set
service_check_timeout to 90 and then use the -t flag to the check command
to allow it to go over 10 seconds.
--Quanah
--
Quanah Gibson-Mount
Principal Software Developer
ITSS/TSS/Computing Systems
ITSS/TSS/Infrastructure Operations
Stanford University
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
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