Check timeout value question

quanta quanta.linux at gmail.com
Mon May 30 06:43:16 CEST 2011


This maybe help:
http://www.cyberciti.biz/faq/shell-scripting-run-command-under-alarmclock/

On 11/30/2010 10:42 PM, steve f wrote:
> I am running a homemade check to check about 8 core processes. 
> Occasionally the check times out after 10 seconds.
>
> All this check does is run /etc/init.d/xxxx status and use either the
> 0 or 1 exit code to report that the process is OK or Critical.
>
> I verified in my nagios.cfg file the timeoout setting is set to 60
> secs and the utils.pm variable for timeout is set to 15 seconds.
>
> I have no timeout setting in this script but figured I need one. 
> Where is the check getting the 10 sec value from?  I assume its a
> default for a nagios check.
>
> If I rewrite the script in perl ( its a simple bash now) and use the
> utils.pm, does that automatically give me the -t option where I could
> set any timeout value or will it only set the timeout to 15 seconds as
> in the utils.pm?
>
> Is there a simple way to add a timeout for this check only ?
>
> Thanks,
>
> Steve
>
>
>
>
> ------------------------------------------------------------------------------
> Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
> Tap into the largest installed PC base & get more eyes on your game by
> optimizing for Intel(R) Graphics Technology. Get started today with the
> Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
> http://p.sf.net/sfu/intelisp-dev2dev
>
>
> _______________________________________________
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20110530/042c05bc/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
-------------- next part --------------
_______________________________________________
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