<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
This maybe help: <a
href="http://www.cyberciti.biz/faq/shell-scripting-run-command-under-alarmclock/">http://www.cyberciti.biz/faq/shell-scripting-run-command-under-alarmclock/</a><br>
<br>
On 11/30/2010 10:42 PM, steve f wrote:
<blockquote cite="mid:BLU152-w3605617466FFF230C8FDEDA2250@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
I am running a homemade check to check about 8 core processes.
Occasionally the check times out after 10 seconds.<br>
<br>
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.<br>
<br>
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.<br>
<br>
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.<br>
<br>
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?<br>
<br>
Is there a simple way to add a timeout for this check only ?<br>
<br>
Thanks,<br>
<br>
Steve<br>
<br>
<br>
<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
------------------------------------------------------------------------------
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.
<a class="moz-txt-link-freetext" href="http://p.sf.net/sfu/intelisp-dev2dev">http://p.sf.net/sfu/intelisp-dev2dev</a></pre>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Nagios-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null</pre>
</blockquote>
</body>
</html>