2009/8/17 Marco Tirado <marco.tir...@gmail.com>:
> Hello Users:
>
>  I believe this question has popped out before in the forum but I still have
> not seen any direct answer. I have some problems with a couple of checks
> that return (Service Check Timed Out) with a critical state. I would ike to
> know if it is possible to configure these timeouts to returns status unknown
> instead.


It depends a little on which plugin it is you are using.  I think I've
seen some plugins which let you choose whether they will output
'UNKNOWN' or 'CRITICAL' on timeout.  Run the plugin yourself from the
command line with the "--help" option to check what options are
available.

If the plugin won't do it, you can change it yourself so it does (if
it's a script just edit it, if a binary then edit the source and
re-compile).  Alternatively, you can write a wrapper plugin which
alters the output of the original plugin (less efficient, but maybe
more convenient to implement in some circumstances).

Of course you could also increase the plugin timeout setting to the
point where it doesn't time-out, but that might not be entirely wise
if there are a lot of them running in your system.  You'd need to
check whether Nagios itself will time them out eventually too - see
the "TIMEOUT VALUES" section in your nagios.cfg file, expecially
service_check_timeout and host_check_timeout.
http://nagios.sourceforge.net/docs/3_0/configmain.html#service_check_timeout

hth,

Jim

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Nagios-users mailing list
Nagios-users@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

Reply via email to