[Nagios-users] Check timeout value question

2010-11-30 Thread steve f

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/ 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@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

Re: [Nagios-users] Check timeout value question

2011-05-29 Thread quanta
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/ 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@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
--
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___
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