<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1528" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><FONT color=#000000><SPAN
class=507365309-26022006>Venkatesh,</SPAN></FONT></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><FONT color=#000000><SPAN
class=507365309-26022006></SPAN></FONT></SPAN> </P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><FONT
color=#000000><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><FONT><SPAN
class=507365309-26022006>I had the same problem as you and for my part the
solution was to look at the timeout accepted on check_nrpe
rather</SPAN> <SPAN class=507365309-26022006>than looking at the timeout on
the individual plugins. You can do that </SPAN>using the -t option on
check_nrpe<SPAN class=507365309-26022006>. Even if the check plugin
</SPAN></FONT></SPAN></FONT><FONT color=#000000><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><FONT><SPAN
class=507365309-26022006>has an option to set the timeout (as Hans
suggests) you might experience that check_nrpe will in any
</SPAN></FONT></SPAN></FONT><FONT color=#000000><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><FONT><SPAN
class=507365309-26022006>case time out before this. Therefore the timeout on
check_nrpe is crucial.</SPAN></FONT></SPAN></FONT></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><FONT
color=#000000><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><FONT><SPAN
class=507365309-26022006></SPAN></FONT></SPAN><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><?xml:namespace prefix = o
ns = "urn:schemas-microsoft-com:office:office"
/><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><FONT color=#000000>For
example I have two "remote_check" commands defined.<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><FONT color=#000000>One
uses <SPAN class=507365309-26022006>the check_nrpe </SPAN><SPAN
class=507365309-26022006>default</SPAN> timeout<SPAN class=507365309-26022006>
(10 sec)</SPAN> and the other allows 40 secs for the command to
execute:<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><o:p><FONT
color=#000000> </FONT></o:p></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><FONT color=#000000>define
command{<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><FONT color=#000000><SPAN
style="mso-spacerun: yes">
</SPAN>command_name<SPAN style="mso-spacerun: yes">
</SPAN>remote_check<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><FONT color=#000000><SPAN
style="mso-spacerun: yes">
</SPAN>command_line<SPAN style="mso-spacerun: yes">
</SPAN>/usr/local/nagios/libexec/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -a $ARG2$
$ARG3$ $ARG4$ $ARG5$ $ARG6$<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><FONT
color=#000000><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><SPAN
style="mso-spacerun: yes">
</SPAN></SPAN><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: DA">}<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: DA"><o:p><FONT
color=#000000> </FONT></o:p></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: DA"><FONT
color=#000000><SPAN class=507365309-26022006># Same as above but allow the
remote check to run for long time. </SPAN></FONT></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: DA"><FONT
color=#000000><SPAN class=507365309-26022006># Used for checks that take
long</SPAN></FONT></SPAN><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: DA"><FONT
color=#000000><SPAN class=507365309-26022006> to execute, e.g. checks that
requires parsing of logs, etc.</SPAN></FONT></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: DA"><FONT
color=#000000><SPAN class=507365309-26022006></SPAN>define
command{<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: DA"><FONT
color=#000000><SPAN
style="mso-spacerun: yes">
</SPAN>command_name<SPAN style="mso-spacerun: yes">
</SPAN>remote_check_long<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: DA"><FONT
color=#000000><SPAN
style="mso-spacerun: yes">
</SPAN>command_line<SPAN style="mso-spacerun: yes">
</SPAN>/usr/local/nagios/libexec/check_nrpe -H $HOSTADDRESS$ -t 40 -c $ARG1$ -a
$ARG2$ $ARG3$ $ARG4$ $ARG5$ $ARG6$<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: DA"><FONT
color=#000000><SPAN
style="mso-spacerun: yes"> </SPAN>}
<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: DA"><o:p><FONT
color=#000000> </FONT></o:p></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: DA"><o:p><FONT
color=#000000> </FONT></o:p></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: DA"><FONT
color=#000000>rgds,<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: DA"><o:p><FONT
color=#000000> </FONT></o:p></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-ansi-language: DA"><FONT
color=#000000>Lars<o:p></o:p></FONT></SPAN></P></FONT></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B>
nagiosplug-help-admin@lists.sourceforge.net
[mailto:nagiosplug-help-admin@lists.sourceforge.net] <B>On Behalf Of </B>Hans
Engelen<BR><B>Sent:</B> 26. februar 2006 00:25<BR><B>To:</B>
Nagiosplug-help@lists.sourceforge.net<BR><B>Subject:</B> Re: [Nagiosplug-help] i
have problem in plugin timeout<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV>I think there are two places you need to look.</DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV>First the plugin itself, i.e. the check_dig plugin for example allows you
to set a timeout and there are a couple of other no doubt. Changing this is a
matter of changing the check command in checkcommands.cfg (or where ever you
keep your check command configs) to include the proper parameter and timeout
value to suit your needs. In the case of the check_dig example this is -t xx
where xx is the number of seconds. </DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV>The second place is in the main Nagios config (nagios.cfg) where the global
maximum times are defined for different sets of actions. There you will find :
</DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV>service_check_timeout=30<BR>host_check_timeout=30<BR>event_handler_timeout=30<BR>notification_timeout=30<BR>ocsp_timeout=5<BR>perfdata_timeout=30<BR> </DIV>
<DIV>I would say one of these two possebilities is where you need to look.</DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV>Cheers,</DIV>
<DIV>Hans<BR> </DIV>
<DIV><SPAN class=gmail_quote>On 2/25/06, <B class=gmail_sendername>Venkatesh</B>
<<A href="mailto:venki_lin@fastmail.us">venki_lin@fastmail.us</A>>
wrote:</SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">hello
all,<BR><BR>i get lots of mail alerts as the plugin goes critical after some
times<BR>ie 10 seconds and will be getting lot of mails, how can i increase
the <BR>plugin timeout time and stop getting lots of mails from that.
please<BR>advice and help me
everyone<BR><BR>regards<BR>venki<BR>--<BR>Venkatesh<BR><A
href="mailto:venki_lin@fastmail.us">venki_lin@fastmail.us</A><BR><BR>--<BR><A
href="http://www.fastmail.fm">http://www.fastmail.fm</A> - mmm...
Fastmail...<BR><BR><BR><BR>-------------------------------------------------------<BR>This
SF.Net email is sponsored by xPML, a groundbreaking scripting language
<BR>that extends applications into web and mobile media. Attend the live
webcast<BR>and join the prime developer group breaking into this new coding
territory!<BR><A
href="http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642">http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642</A><BR>_______________________________________________<BR>Nagiosplug-help
mailing list<BR><A
href="mailto:Nagiosplug-help@lists.sourceforge.net">Nagiosplug-help@lists.sourceforge.net</A><BR><A
href="https://lists.sourceforge.net/lists/listinfo/nagiosplug-help">https://lists.sourceforge.net/lists/listinfo/nagiosplug-help</A><BR>:::
Please include plugins version (-v) and OS when reporting any issue. <BR>:::
Messages without supporting info will risk being sent to
/dev/null<BR></BLOCKQUOTE></DIV><BR></BODY></HTML>