check_ftp gives a critical w/ shorter than warning

Subhendu Ghosh sghosh at sghosh.org
Fri Apr 25 11:18:35 CEST 2003


On Thu, 24 Apr 2003, C. Bensend wrote:

> On Thu, Apr 24, 2003 at 04:29:51PM -0700, Nicholas Bernstein wrote:
> > I get critical errors if it takes longer than 10 seconds to check. This
> > doesn't make sense to me. I've got the timeout at forty - and the
> > warning is at 15 - I'm confused. Giving an error at ten seconds doesn't
> > make any sense to me. If anyone can explain it to me, I would be much
> > appreciative. 
> 
> The default timeout for plugins is 10 seconds, defined by common.h:
> 
> #define DEFAULT_SOCKET_TIMEOUT  10      /* timeout after 10 seconds */
> 
> You can either change that, then recompile whichever plugin is giving
> you problems, or recompile all of the plugins to inherit the new
> default timeout value.
> 

The -t option for the plugin overrides this options

Also in nagios.cfg set the TIMEOUT VALUES to be lerge enough to the cover 
the expected duration for the longest plugins.


-- 

-sg



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
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