<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40"
xmlns:ns5="http://schemas.microsoft.com/office/2004/12/omml">
<head>
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--a:link
{mso-style-priority:99;}
span.MSOHYPERLINK
{mso-style-priority:99;}
a:visited
{mso-style-priority:99;}
span.MSOHYPERLINKFOLLOWED
{mso-style-priority:99;}
p.MSOPLAINTEXT
{mso-style-priority:99;}
li.MSOPLAINTEXT
{mso-style-priority:99;}
div.MSOPLAINTEXT
{mso-style-priority:99;}
p
{mso-style-priority:99;}
pre
{mso-style-priority:99;}
p.MSOACETATE
{mso-style-priority:99;}
li.MSOACETATE
{mso-style-priority:99;}
div.MSOACETATE
{mso-style-priority:99;}
p.MSONOSPACING
{mso-style-priority:99;}
li.MSONOSPACING
{mso-style-priority:99;}
div.MSONOSPACING
{mso-style-priority:99;}
span.HTMLPREFORMATTEDCHAR
{mso-style-priority:99;}
span.PLAINTEXTCHAR
{mso-style-priority:99;}
span.BALLOONTEXTCHAR
{mso-style-priority:99;}
/* Font Definitions */
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 7 2 3 4 4 3 2 4;}
@font-face
{font-family:Cambria;}
@font-face
{font-family:Consolas;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:Calibri;}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:Calibri;}
p
{mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman";}
pre
{margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:Tahoma;}
span.HTMLPreformattedChar
{font-family:Consolas;}
span.PlainTextChar
{font-family:Calibri;}
span.BalloonTextChar
{font-family:Tahoma;}
p.msonospacing, li.msonospacing, div.msonospacing
{mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman";}
p.HTMLPreformatted, li.HTMLPreformatted, div.HTMLPreformatted
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:Calibri;}
p.PlainText, li.PlainText, div.PlainText
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:Calibri;}
p.BalloonText, li.BalloonText, div.BalloonText
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:Calibri;}
span.StileMessaggioDiPostaElettronica28
{mso-style-type:personal;
font-family:Calibri;
color:windowtext;}
span.StileMessaggioDiPostaElettronica29
{mso-style-type:personal;
font-family:Calibri;
color:windowtext;}
span.StileMessaggioDiPostaElettronica30
{mso-style-type:personal;
font-family:Cambria;
color:#1F497D;
font-weight:normal;
font-style:normal;
text-decoration:none none;}
span.StileMessaggioDiPostaElettronica31
{mso-style-type:personal-reply;
font-family:Arial;
color:navy;}
@page Section1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=IT link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>Hi<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>I’ve had the same
problem with some remote checks, I solved it by adding a “-u” in
the command. (“u” turns a time out critical into a time out unknown
message). This works only if your plugin accept this value. <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>Regards <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>Valerio<o:p></o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt;font-family:"Times New Roman"'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span lang=EN-GB
style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>Da:</span></font></b><font
size=2 face=Tahoma><span lang=EN-GB style='font-size:10.0pt;font-family:Tahoma'>
Mirza Dedic [mailto:mirde@oppy.com] <br>
<b><span style='font-weight:bold'>Inviato:</span></b> giovedì 27 maggio
2010 5.18<br>
<b><span style='font-weight:bold'>A:</span></b> <st1:PersonName w:st="on">'Nagios
Plugin Help List'</st1:PersonName><br>
<b><span style='font-weight:bold'>O</span></b></span></font><b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>ggetto:</span></font></b><font
size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> Re:
[Nagiosplug-help] check_by_ssh timed out issue</span></font><font size=3
face="Times New Roman"><span style='font-size:12.0pt;font-family:"Times New Roman"'><o:p></o:p></span></font></p>
</div>
<p class=MsoNormal><font size=2 face=Calibri><span style='font-size:11.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#1f497d" face=Cambria><span lang=EN-US
style='font-size:11.0pt;font-family:Cambria;color:#1F497D'>I get that, but with
the check script the “timed out” warning comes back as a critical.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#1f497d" face=Cambria><span lang=EN-US
style='font-size:11.0pt;font-family:Cambria;color:#1F497D'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#1f497d" face=Cambria><span lang=EN-US
style='font-size:11.0pt;font-family:Cambria;color:#1F497D'>I might be stuck
with this as there is no “switch” to add to check_by_ssh for timed
out values to not raise a critical condition as I’ve seen in some other scripts.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#1f497d" face=Cambria><span lang=EN-US
style='font-size:11.0pt;font-family:Cambria;color:#1F497D'><o:p> </o:p></span></font></p>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>
<p class=MsoNormal><b><font size=2 face=Tahoma><span lang=EN-US
style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</span></font></b><font
size=2 face=Tahoma><span lang=EN-US style='font-size:10.0pt;font-family:Tahoma'>
Tony Parsonage [mailto:TParsonage@thiess.com.au] <br>
<b><span style='font-weight:bold'>Sent:</span></b> May/26/2010 5:02 PM<br>
<b><span style='font-weight:bold'>To:</span></b> Nagios Plugin Help List<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [Nagiosplug-help]
check_by_ssh timed out issue<o:p></o:p></span></font></p>
</div>
</div>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-AU style='font-size:
11.0pt'>You should be able to set the alert so that if you get an
‘unknown’ response then will not alert. I am unsure
where this is set on the command line, my copy of Groundworks uses a web
browser front end and it is set as below:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-AU style='font-size:
11.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-AU style='font-size:
11.0pt'><img width=393 height=141 id="Picture_x005f_x0020_1"
src="cid:image001.jpg@01CAFD71.BCCDB4D0"><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-AU style='font-size:
11.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-AU style='font-size:
11.0pt'>If I untick the box for ‘unknown’ then save your
configuration then I only get emails for Warning and Critical alerts.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-AU style='font-size:
11.0pt'><o:p> </o:p></span></font></p>
<div>
<p class=MsoNormal><b><font size=2 color=black face=Arial><span lang=EN-AU
style='font-size:10.0pt;font-family:Arial;color:black;font-weight:bold'>Tony </span></font></b><font
color=black><span lang=EN-AU style='color:black'><o:p></o:p></span></font></p>
</div>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-AU style='font-size:
11.0pt'><o:p> </o:p></span></font></p>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>
<p class=MsoNormal><b><font size=2 face=Tahoma><span lang=EN-US
style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</span></font></b><font
size=2 face=Tahoma><span lang=EN-US style='font-size:10.0pt;font-family:Tahoma'>
Mirza Dedic [mailto:mirde@oppy.com] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Thursday, 27 May 2010 9:50
AM<br>
<b><span style='font-weight:bold'>To:</span></b>
'nagiosplug-help@lists.sourceforge.net'<br>
<b><span style='font-weight:bold'>Subject:</span></b> [Nagiosplug-help]
check_by_ssh timed out issue<o:p></o:p></span></font></p>
</div>
</div>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-AU style='font-size:
11.0pt'><o:p> </o:p></span></font></p>
<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-US
style='font-size:11.0pt;font-family:"Courier New"'>Hi List,<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-US
style='font-size:11.0pt;font-family:"Courier New"'><o:p> </o:p></span></font></p>
<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-US
style='font-size:11.0pt;font-family:"Courier New"'>I have Nagios currently
using check_by_ssh (<b><span style='font-weight:bold'>check_by_ssh v2002
(nagios-plugins 1.4.13))</span></b> to check some of my remote servers, it
calls a log script on the remote server and the log script returns a warning if
the log files matches the criteria.<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-US
style='font-size:11.0pt;font-family:"Courier New"'><o:p> </o:p></span></font></p>
<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-US
style='font-size:11.0pt;font-family:"Courier New"'>Every now and then, the
check_by_ssh script gets timed out, and returns the message below.<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-US
style='font-size:11.0pt;font-family:"Courier New"'><o:p> </o:p></span></font></p>
<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-US
style='font-size:11.0pt;font-family:"Courier New"'>Is there a way to suppress
this at the Nagios box, so that Plugin Timed Out messages do not get emailed as
“Critical”?<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-US
style='font-size:11.0pt;font-family:"Courier New"'><o:p> </o:p></span></font></p>
<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-US
style='font-size:11.0pt;font-family:"Courier New"'>Anyone know? Below is my
command definition..<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 face=Calibri><span lang=EN-US
style='font-size:11.0pt'><o:p> </o:p></span></font></p>
<p class=MsoPlainText><b><font size=2 face=Calibri><span lang=EN-US
style='font-size:11.0pt;font-weight:bold'>define command{<o:p></o:p></span></font></b></p>
<p class=MsoPlainText><b><font size=2 face=Calibri><span lang=EN-US
style='font-size:11.0pt;font-weight:bold'>
command_name
van-oppy-pro_data450<o:p></o:p></span></font></b></p>
<p class=MsoPlainText><b><font size=2 face=Calibri><span lang=EN-US
style='font-size:11.0pt;font-weight:bold'>
command_line $USER1$/check_by_ssh -H someserver -p 22 -i
/home/nagios/.ssh/id_dsa -t 10 -C "/home/nagios/plugins/check_logfiles -t
30 -f /home/nagios/log_conf/usr1_data450.lg"<o:p></o:p></span></font></b></p>
<p class=MsoPlainText><b><font size=2 face=Calibri><span lang=EN-US
style='font-size:11.0pt;font-weight:bold'>}<o:p></o:p></span></font></b></p>
<p class=MsoPlainText><font size=2 face=Calibri><span lang=EN-US
style='font-size:11.0pt'><o:p> </o:p></span></font></p>
<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-US
style='font-size:11.0pt;font-family:"Courier New"'>Nagios alert returned when
the box being queried is very busy (this does not happen often, but creates a
unwanted false positive warning):<o:p></o:p></span></font></p>
<p class=MsoPlainText><font size=2 face=Calibri><span lang=EN-US
style='font-size:11.0pt'><o:p> </o:p></span></font></p>
<p class=MsoPlainText><b><font size=2 face=Calibri><span lang=EN-US
style='font-size:11.0pt;font-weight:bold'>CRITICAL - Plugin timed out while
executing system call<o:p></o:p></span></font></b></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt;font-family:
"Times New Roman";background:white'><o:p> </o:p></span></font></p>
<p align=center style='text-align:center'><font size=3 face="Times New Roman"><span
lang=EN-US style='font-size:12.0pt;background:white'>Click <a
href="https://www.mailcontrol.com/sr/wQw0zmjPoHdJTZGyOCrrhg==">here</a> to
report this email as spam.<o:p></o:p></span></font></p>
<pre><font size=2 face="Courier New"><span lang=EN-AU style='font-size:10.0pt'>The Oppenheimer Group ---- CONFIDENTIAL<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-AU style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-AU style='font-size:10.0pt'>This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span lang=EN-AU style='font-size:10.0pt'><o:p> </o:p></span></font></pre>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span lang=EN-AU style='font-size:12.0pt;font-family:
"Times New Roman"'><o:p> </o:p></span></font></p>
<p class=msonospacing style='margin:0cm;margin-bottom:.0001pt'><font size=3
face=Calibri><span lang=EN-AU style='font-size:12.0pt;font-family:Calibri'>_____________________________________________________________________</span></font><span
lang=EN-AU><o:p></o:p></span></p>
<p class=msonospacing style='margin:0cm;margin-bottom:.0001pt'><font size=3
face=Calibri><span lang=EN-AU style='font-size:12.0pt;font-family:Calibri'>IMPORTANT
- This email and any attachments may be confidential and privileged. </span></font><span
lang=EN-AU><o:p></o:p></span></p>
<p class=msonospacing style='margin:0cm;margin-bottom:.0001pt'><font size=3
face=Calibri><span lang=EN-AU style='font-size:12.0pt;font-family:Calibri'>If
received in error, please contact Thiess and delete all copies. You may
not </span></font><span lang=EN-AU><o:p></o:p></span></p>
<p class=msonospacing style='margin:0cm;margin-bottom:.0001pt'><font size=3
face=Calibri><span lang=EN-AU style='font-size:12.0pt;font-family:Calibri'>rely
on advice and documents received by email unless confirmed by a signed Thiess</span></font><span
lang=EN-AU><o:p></o:p></span></p>
<p class=msonospacing style='margin:0cm;margin-bottom:.0001pt'><font size=3
face=Calibri><span lang=EN-AU style='font-size:12.0pt;font-family:Calibri'>letter.
This restriction on reliance will not apply to the extent that the above email </span></font><span
lang=EN-AU><o:p></o:p></span></p>
<p class=msonospacing style='margin:0cm;margin-bottom:.0001pt'><font size=3
face=Calibri><span lang=EN-AU style='font-size:12.0pt;font-family:Calibri'>communication
is between parties to a contract and is authorised under that contract.</span></font><span
lang=EN-AU><o:p></o:p></span></p>
<p class=msonospacing style='margin:0cm;margin-bottom:.0001pt'><font size=3
face=Calibri><span lang=EN-AU style='font-size:12.0pt;font-family:Calibri'>Before
opening or using attachments, check them for viruses and defects. Thiess'
</span></font><span lang=EN-AU><o:p></o:p></span></p>
<p class=msonospacing style='margin:0cm;margin-bottom:.0001pt'><font size=3
face=Calibri><span lang=EN-AU style='font-size:12.0pt;font-family:Calibri'>liability
is limited to resupplying any affected attachments.</span></font><span
lang=EN-AU><o:p></o:p></span></p>
<p><font size=3 face="Times New Roman"><span lang=EN-AU style='font-size:12.0pt'> <o:p></o:p></span></font></p>
</div>
</body>
</html>
<pre>The Oppenheimer Group ---- CONFIDENTIAL
This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.