[Nagiosplug-devel] [check_snmp] : Default timeout, not ten but one second

Holger Weiß holger at cis.fu-berlin.de
Sat Aug 17 17:53:44 UTC 2013


* Frédéric Royau <royau.frederic at sigmap.msa.fr> [2013-06-10 16:02]:
> It appears that the actual default timeout is not ten seconds, as
> shown in the help page :
> 
>  -t, --timeout=INTEGER
>     Seconds before connection times out (default: 10)
> 
> but one second, as shown in the source code :
> 
> check_snmp.c (nagios-plugins v1.4.16) :
> 
> #define DEFAULT_TIMEOUT 1

This is the timeout in seconds between connection retries.  As the
number of retries is 5 by default, the plugin will give up after about 6
seconds if it gets no response.

Please feel free to fix the --help output accordingly and to create a
pull request on GitHub, or otherwise to create a bug tracker item on
SourceForge so that this doesn't get lost.

Thanks, Holger




More information about the Nagiosplugin-devel mailing list