<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:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 14 (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]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Cambria;
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
p.MsoNoSpacing, li.MsoNoSpacing, div.MsoNoSpacing
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:Consolas;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
p.htmlpreformatted, li.htmlpreformatted, div.htmlpreformatted
        {mso-style-name:htmlpreformatted;
        mso-style-priority:99;
        margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
p.plaintext, li.plaintext, div.plaintext
        {mso-style-name:plaintext;
        mso-style-priority:99;
        margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
p.balloontext, li.balloontext, div.balloontext
        {mso-style-name:balloontext;
        mso-style-priority:99;
        margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.htmlpreformattedchar0
        {mso-style-name:htmlpreformattedchar;
        mso-style-priority:99;
        font-family:Consolas;}
span.plaintextchar0
        {mso-style-name:plaintextchar;
        mso-style-priority:99;
        font-family:"Calibri","sans-serif";}
span.balloontextchar0
        {mso-style-name:balloontextchar;
        mso-style-priority:99;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle31
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle32
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle33
        {mso-style-type:personal;
        font-family:"Cambria","serif";
        color:#1F497D;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
span.EmailStyle34
        {mso-style-type:personal;
        font-family:"Arial","sans-serif";
        color:navy;}
span.EmailStyle35
        {mso-style-type:personal-reply;
        font-family:"Cambria","serif";
        color:#1F497D;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></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=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-family:"Cambria","serif";color:#1F497D'>How did you get the –u switch to appear on check_by_ssh?<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Cambria","serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Cambria","serif";color:#1F497D'>Mine does not seem to have this, this is the output of –h for my plugin.<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Cambria","serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'>check_by_ssh v2002 (nagios-plugins 1.4.13)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'>Copyright (c) 1999 Karl DeBisschop <kdebisschop@users.sourceforge.net><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'>Copyright (c) 2000-2008 Nagios Plugin Development Team<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'>      <nagiosplug-devel@lists.sourceforge.net><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'>This plugin uses SSH to execute commands on a remote host<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'>Usage: check_by_ssh -H <host> -C <command> [-fqv] [-1|-2] [-4|-6]<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'>       [-S [lines]] [-E [lines]] [-t timeout] [-i identity]<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'>       [-l user] [-n name] [-s servicelist] [-O outputfile]<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'>       [-p port] [-o ssh-option]<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'>Options:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'> -h, --help<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'>    Print detailed help screen<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'> -V, --version<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'>    Print version information<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'> --extra-opts=[section][@file]<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'>    Read additionnal options from ini file<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'> -H, --hostname=ADDRESS<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'>    Host name, IP Address, or unix socket (must be an absolute path)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'> -p, --port=INTEGER<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'>    Port number (default: none)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'> -4, --use-ipv4<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'>    Use IPv4 connection<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'> -6, --use-ipv6<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'>    Use IPv6 connection<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'> -1, --proto1<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'>    tell ssh to use Protocol 1 [optional]<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'> -2, --proto2<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'>    tell ssh to use Protocol 2 [optional]<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'> -S, --skip-stdout[=n]<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'>    Ignore all or (if specified) first n lines on STDOUT [optional]<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'> -E, --skip-stderr[=n]<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'>    Ignore all or (if specified) first n lines on STDERR [optional]<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'> -f<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'>    tells ssh to fork rather than create a tty [optional]. This will always return OK if ssh is executed<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'> -C, --command='COMMAND STRING'<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'>    command to execute on the remote machine<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'> -l, --logname=USERNAME<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'>    SSH user name on remote host [optional]<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'> -i, --identity=KEYFILE<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'>    identity of an authorized key [optional]<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'> -O, --output=FILE<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'>    external command file for nagios [optional]<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'> -s, --services=LIST<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'>    list of nagios service names, separated by ':' [optional]<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'> -n, --name=NAME<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'>    short name of host in nagios configuration [optional]<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'> -o, --ssh-option=OPTION<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'>    Call ssh with '-o OPTION' (may be used multiple times) [optional]<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'> -q, --quiet<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'>    Tell ssh to suppress warning and diagnostic messages [optional]<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'> -w, --warning=DOUBLE<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'>    Response time to result in warning status (seconds)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'> -c, --critical=DOUBLE<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'>    Response time to result in critical status (seconds)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'> -t, --timeout=INTEGER<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'>    Seconds before connection times out (default: 10)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'> -v, --verbose<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'>    Show details for command-line debugging (Nagios may truncate output)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'> The most common mode of use is to refer to a local identity file with<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'> the '-i' option. In this mode, the identity pair should have a null<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'> passphrase and the public key should be listed in the authorized_keys<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'> file of the remote host. Usually the key will be restricted to running<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'> only one command on the remote server. If the remote SSH server tracks<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'> invocation arguments, the one remote program may be an agent that can<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'> execute additional commands as proxy<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'> To use passive mode, provide multiple '-C' options, and provide<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'> all of -O, -s, and -n options (servicelist order must match '-C'options)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'>Examples:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'> $ check_by_ssh -H localhost -n lh -s c1:c2:c3 -C uptime -C uptime -C uptime -O /tmp/foo<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'> $ cat /tmp/foo<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'> [1080933700] PROCESS_SERVICE_CHECK_RESULT;flint;c1;0; up 2 days<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'> [1080933700] PROCESS_SERVICE_CHECK_RESULT;flint;c2;0; up 2 days<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'> [1080933700] PROCESS_SERVICE_CHECK_RESULT;flint;c3;0; up 2 days<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'>Notes:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'> See: http://nagiosplugins.org/extra-opts for --extra-opts usage and examples.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'>Send email to nagios-users@lists.sourceforge.net if you have questions<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'>regarding use of this software. To submit patches or suggest improvements,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'>send email to nagiosplug-devel@lists.sourceforge.net<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Cambria","serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Cambria","serif";color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Valerio.FABRIZIO@sungard.com [mailto:Valerio.FABRIZIO@sungard.com] <br><b>Sent:</b> May/26/2010 10:54 PM<br><b>To:</b> nagiosplug-help@lists.sourceforge.net<br><b>Subject:</b> [Nagiosplug-help] R: check_by_ssh timed out issue<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=IT style='font-size:10.0pt;font-family:"Arial","sans-serif";color:navy'><o:p> </o:p></span></p><p class=MsoNormal><span lang=IT style='font-size:10.0pt;font-family:"Arial","sans-serif";color:navy'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";color:navy'>Hi<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";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></p><p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";color:navy'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";color:navy'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";color:navy'>Regards <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";color:navy'>Valerio<o:p></o:p></span></p><div><div class=MsoNormal align=center style='text-align:center'><span lang=IT style='font-size:12.0pt;font-family:"Times New Roman","serif"'><hr size=2 width="100%" align=center></span></div><p class=MsoNormal><b><span lang=EN-GB style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Da:</span></b><span lang=EN-GB style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Mirza Dedic [mailto:mirde@oppy.com] <br><b>Inviato:</b> giovedě 27 maggio 2010 5.18<br><b>A:</b> 'Nagios Plugin Help List'<br><b>O</b></span><b><span lang=IT style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>ggetto:</span></b><span lang=IT style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Re: [Nagiosplug-help] check_by_ssh timed out issue</span><span lang=IT style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p></div><p class=MsoNormal><span lang=IT><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Cambria","serif";color:#1F497D'>I get that, but with the check script the “timed out” warning comes back as a critical.<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Cambria","serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Cambria","serif";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></p><p class=MsoNormal><span style='font-family:"Cambria","serif";color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Tony Parsonage [mailto:TParsonage@thiess.com.au] <br><b>Sent:</b> May/26/2010 5:02 PM<br><b>To:</b> Nagios Plugin Help List<br><b>Subject:</b> Re: [Nagiosplug-help] check_by_ssh timed out issue<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-AU>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></p><p class=MsoNormal><span lang=EN-AU><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-AU><img width=393 height=141 id="Picture_x005f_x0020_1" src="cid:image001.jpg@01CAFD6B.D8F67940"><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-AU><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-AU>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></p><p class=MsoNormal><span lang=EN-AU><o:p> </o:p></span></p><div><p class=MsoNormal><b><span lang=EN-AU style='font-size:10.0pt;font-family:"Arial","sans-serif";color:black'>Tony </span></b><span lang=EN-AU style='color:black'><o:p></o:p></span></p></div><p class=MsoNormal><span lang=EN-AU><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Mirza Dedic [mailto:mirde@oppy.com] <br><b>Sent:</b> Thursday, 27 May 2010 9:50 AM<br><b>To:</b> 'nagiosplug-help@lists.sourceforge.net'<br><b>Subject:</b> [Nagiosplug-help] check_by_ssh timed out issue<o:p></o:p></span></p></div></div><p class=MsoNormal><span lang=EN-AU><o:p> </o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>Hi List,<o:p></o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>I have Nagios currently using check_by_ssh (<b>check_by_ssh v2002 (nagios-plugins 1.4.13))</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></p><p class=MsoPlainText><span style='font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoPlainText><span style='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></p><p class=MsoPlainText><span style='font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoPlainText><span style='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></p><p class=MsoPlainText><span style='font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoPlainText><span style='font-family:"Courier New"'>Anyone know? Below is my command definition..<o:p></o:p></span></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText><b>define command{<o:p></o:p></b></p><p class=MsoPlainText><b>                command_name             van-oppy-pro_data450<o:p></o:p></b></p><p class=MsoPlainText><b>                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></b></p><p class=MsoPlainText><b>}<o:p></o:p></b></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText><span style='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></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText><b>CRITICAL - Plugin timed out while executing system call<o:p></o:p></b></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:12.0pt;font-family:"Times New Roman","serif";background:white'><o:p> </o:p></span></p><p align=center style='text-align:center'><span style='background:white'>Click <a href="https://www.mailcontrol.com/sr/wQw0zmjPoHdJTZGyOCrrhg==">here</a> to report this email as spam.<o:p></o:p></span></p><pre><span lang=EN-AU>The Oppenheimer Group ---- CONFIDENTIAL<o:p></o:p></span></pre><pre><span lang=EN-AU><o:p> </o:p></span></pre><pre><span lang=EN-AU>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></pre><pre><span lang=EN-AU><o:p> </o:p></span></pre><p class=MsoNormal style='margin-bottom:12.0pt'><span lang=EN-AU style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p> </o:p></span></p><p class=MsoNoSpacing style='margin:0in;margin-bottom:.0001pt'><span lang=EN-AU style='font-family:"Calibri","sans-serif"'>_____________________________________________________________________</span><span lang=EN-AU><o:p></o:p></span></p><p class=MsoNoSpacing style='margin:0in;margin-bottom:.0001pt'><span lang=EN-AU style='font-family:"Calibri","sans-serif"'>IMPORTANT - This email and any attachments may be confidential and privileged.  </span><span lang=EN-AU><o:p></o:p></span></p><p class=MsoNoSpacing style='margin:0in;margin-bottom:.0001pt'><span lang=EN-AU style='font-family:"Calibri","sans-serif"'>If received in error, please contact Thiess and delete all copies.  You may not </span><span lang=EN-AU><o:p></o:p></span></p><p class=MsoNoSpacing style='margin:0in;margin-bottom:.0001pt'><span lang=EN-AU style='font-family:"Calibri","sans-serif"'>rely on advice and documents received by email unless confirmed by a signed Thiess</span><span lang=EN-AU><o:p></o:p></span></p><p class=MsoNoSpacing style='margin:0in;margin-bottom:.0001pt'><span lang=EN-AU style='font-family:"Calibri","sans-serif"'>letter.  This restriction on reliance will not apply to the extent that the above email </span><span lang=EN-AU><o:p></o:p></span></p><p class=MsoNoSpacing style='margin:0in;margin-bottom:.0001pt'><span lang=EN-AU style='font-family:"Calibri","sans-serif"'>communication is between parties to a contract and is authorised under that contract.</span><span lang=EN-AU><o:p></o:p></span></p><p class=MsoNoSpacing style='margin:0in;margin-bottom:.0001pt'><span lang=EN-AU style='font-family:"Calibri","sans-serif"'>Before opening or using attachments, check them for viruses and defects.  Thiess' </span><span lang=EN-AU><o:p></o:p></span></p><p class=MsoNoSpacing style='margin:0in;margin-bottom:.0001pt'><span lang=EN-AU style='font-family:"Calibri","sans-serif"'>liability is limited to resupplying any affected attachments.</span><span lang=EN-AU><o:p></o:p></span></p><p><span lang=EN-AU> <o:p></o:p></span></p><pre>The Oppenheimer Group ---- CONFIDENTIAL<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>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></pre></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.