<html 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">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 10">
<meta name=Originator content="Microsoft Word 10">
<link rel=File-List href="cid:filelist.xml@01C2F60B.887494D0">
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="place"/>
<!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:DoNotRelyOnCSS/>
</o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:SpellingState>Clean</w:SpellingState>
<w:GrammarState>Clean</w:GrammarState>
<w:DocumentKind>DocumentEmail</w:DocumentKind>
<w:EnvelopeVis/>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]--><!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:variable;
mso-font-signature:1627421319 -2147483648 8 0 66047 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;
text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;
text-underline:single;}
span.EmailStyle17
{mso-style-type:personal-compose;
mso-style-noshow:yes;
mso-ansi-font-size:10.0pt;
mso-bidi-font-size:10.0pt;
font-family:Arial;
mso-ascii-font-family:Arial;
mso-hansi-font-family:Arial;
mso-bidi-font-family:Arial;
color:windowtext;}
span.SpellE
{mso-style-name:"";
mso-spl-e:yes;}
span.GramE
{mso-style-name:"";
mso-gram-e:yes;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";}
</style>
<![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple style='tab-interval:.5in'>
<div class=Section1>
<p class=MsoNormal><font size=1 face=Tahoma><span style='font-size:8.5pt;
font-family:Tahoma'>Hello,<br>
<br>
The <span class=SpellE>check_ping</span> command doesn't seem to work with <span
class=SpellE>nagios</span>. <br>
<br>
The "Status Information" is "/bin/ping -n -U -c 5 IP_HERE"
and the STATUS of my ping command is UNKNOWN even though <span class=SpellE>i</span>
tried to execute the above command manually and I got all the correct output.<br>
<br>
Here is how my ping command looks in <span class=SpellE>service.cfg</span>:<br>
<br>
<span class=GramE>define</span> service{<br>
<span class=GramE>use</span> generic-service ; Name of service template to use<br>
<br>
<span class=SpellE>host_name</span> domain.com<br>
<span class=SpellE><span class=GramE>service_description</span></span> </span></font><st1:place><font
size=1 face=Tahoma><span style='font-size:8.5pt;font-family:Tahoma'>PING</span></font></st1:place><font
size=1 face=Tahoma><span style='font-size:8.5pt;font-family:Tahoma'><br>
<span class=SpellE>is_volatile</span> 0<br>
<span class=SpellE><span class=GramE>check_period</span></span> 24x7<br>
<span class=SpellE>max_check_attempts</span> 3<br>
<span class=SpellE>normal_check_interval</span> 5<br>
<span class=SpellE>retry_check_interval</span> 1<br>
<span class=SpellE><span class=GramE>contact_groups</span></span> <span
class=SpellE>linux-admins</span><br>
<span class=SpellE>notification_interval</span> 240<br>
<span class=SpellE><span class=GramE>notification_period</span></span> 24x7<br>
<span class=SpellE><span class=GramE>notification_options</span></span> <span
class=SpellE>c,r</span><br>
<span class=SpellE>check_command</span> check_ping!100.0,20%!500.0,60%<br>
}<br>
<br>
And <span class=SpellE>checkcommands.cfg</span>:<br>
<br>
<span class=GramE>define</span> command{<br>
<span class=SpellE>command_name</span> <span class=SpellE>check_ping</span><br>
<span class=SpellE><span class=GramE>command_line</span></span>
$USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5<br>
}<br>
<br>
Thank You for the help in advance.</span></font><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'><o:p></o:p></span></font></p>
</div>
</body>
</html>