Re: [check_snmp] : Default timeout, not ten but one second

Holger Weiß <[email protected]>
Newsgroups gmane.network.nagios.plugins.devel
Organization Freie Universität Berlin
Message-ID <[email protected]>
* Frédéric Royau <[email protected]> [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

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________________
Nagios Plugin Development Mailing List Nagiosplug-devel-5NWGOfrQmneRv+LV9MX5upmplPMkL2fr@public.gmane.orget
Unsubscribe at https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel
::: Please include plugins version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.