<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@01C39266.D8CE15D0">
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="time"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="date"/>
<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:GrammarState>Clean</w:GrammarState>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
  <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:0cm;
        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;}
p
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        mso-pagination:widow-orphan;
        font-size:12.0pt;
        font-family:"Times New Roman";
        mso-fareast-font-family:"Times New Roman";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        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:navy;}
span.GramE
        {mso-style-name:"";
        mso-gram-e:yes;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;
        mso-header-margin:35.4pt;
        mso-footer-margin:35.4pt;
        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:0cm 5.4pt 0cm 5.4pt;
        mso-para-margin:0cm;
        mso-para-margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:10.0pt;
        font-family:"Times New Roman";}
</style>
<![endif]-->
</head>

<body lang=EN-GB link=blue vlink=purple style='tab-interval:36.0pt'>

<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'>Hi,<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 style='font-size:
10.0pt;font-family:Arial;color:navy'>Can you run the command from the command <span
class=GramE>line ?</span><o:p></o:p></span></font></p>

<p class=MsoNormal><span class=GramE><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy'>Ex :</span></font></span><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'>On my redhat it’s for example <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'>$ /usr/local/nagios/libexec/check_ping –H
ip.of.dst.host –w 100.0<span class=GramE>,80</span>% -c 200.0,100% -p 2<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><span class=GramE><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy'>if</span></font></span><font
size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'> it return any status, that means the command is working<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><span class=GramE><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy'>regards</span></font></span><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><span class=GramE><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy'>alexis</span></font></span><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 style='margin-left:36.0pt'><font size=2 face=Tahoma><span
lang=EN-US style='font-size:10.0pt;font-family:Tahoma;mso-ansi-language:EN-US'>-----Original
Message-----<br>
<b><span style='font-weight:bold'>From:</span></b> grik@student.no
[mailto:grik@student.no<span class=GramE>] <br>
<b><span style='font-weight:bold'>Sent</span></b></span><b><span
style='font-weight:bold'>:</span></b> </span></font><st1:date Month="10"
Day="14" Year="2003"><font size=2 face=Tahoma><span lang=EN-US
 style='font-size:10.0pt;font-family:Tahoma;mso-ansi-language:EN-US'>14 October
 2003</span></font></st1:date><font size=2 face=Tahoma><span lang=EN-US
style='font-size:10.0pt;font-family:Tahoma;mso-ansi-language:EN-US'> </span></font><st1:time
Hour="13" Minute="45"><font size=2 face=Tahoma><span lang=EN-US
 style='font-size:10.0pt;font-family:Tahoma;mso-ansi-language:EN-US'>13:45</span></font></st1:time><font
size=2 face=Tahoma><span lang=EN-US style='font-size:10.0pt;font-family:Tahoma;
mso-ansi-language:EN-US'><br>
<b><span style='font-weight:bold'>To:</span></b> Matthew Wilson<br>
<b><span style='font-weight:bold'>Cc:</span></b>
nagios-users@lists.sourceforge.net<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [Nagios-users]
Problems with check_alive</span></font></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><o:p> </o:p></span></font></p>

<p style='margin-left:36.0pt'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'> <o:p></o:p></span></font></p>

<p style='margin-left:36.0pt'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>I cant find any called command.cfg but one called
checkcommands.cfg<o:p></o:p></span></font></p>

<p style='margin-left:36.0pt'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>I cant really find any pointer to what command nagios
really does, but here is what I found in checkcommands.cfg<o:p></o:p></span></font></p>

<p style='margin-left:36.0pt'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'># 'check-host-alive' command definition<br>
define command{<br>
command_name   check-host-alive<br>
command_line   $USER1$/check_ping -H $HOSTADRESS -w 3000. 0, 80% -c
5000. 0, 100% -p 1<br>
}<o:p></o:p></span></font></p>

<p style='margin-left:36.0pt'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>So I am not sure where I can find the command that
nagios really is running.<br>
I should mention that I havent installed any plugins or add-on's yet, this is
right from distributed .tar.gz<o:p></o:p></span></font></p>

<p style='margin-left:36.0pt'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>Maybe I am missing something ?<br>
<br>
The check_ping definition in checkcommands.cfg looks like this:<o:p></o:p></span></font></p>

<p style='margin-left:36.0pt'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'># 'check_ping' command definition<br>
define command{<br>
command_name   check_ping<br>
command_line    $USER1$/check_ping -H $HOSTADRESS -w $ARG1$
-c $ARG2$ -p 5<o:p></o:p></span></font></p>

<p style='margin-left:36.0pt'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'> <o:p></o:p></span></font></p>

<p style='margin-left:36.0pt'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>Mvh<o:p></o:p></span></font></p>

<p style='margin-left:36.0pt'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'> <o:p></o:p></span></font></p>

<p style='margin-left:36.0pt'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>Kjell Grindalen<o:p></o:p></span></font></p>

<p style='margin-left:36.0pt'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'> <o:p></o:p></span></font></p>

<p style='margin-left:36.0pt'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'> <o:p></o:p></span></font></p>

<p style='margin-left:36.0pt'><b><font size=3 face="Times New Roman"><span
style='font-size:12.0pt;font-weight:bold'>----- Original Message -----</span></font></b><o:p></o:p></p>

<p class=MsoNormal style='margin-left:36.0pt'><b><font size=3
face="Times New Roman"><span style='font-size:12.0pt;font-weight:bold'>From</span></font></b>:
Matthew Wilson <matthewwilson@dsl.pipex.com> <o:p></o:p></p>

<p class=MsoNormal style='margin-left:36.0pt'><b><font size=3
face="Times New Roman"><span style='font-size:12.0pt;font-weight:bold'>Date</span></font></b>:
<st1:date Month="10" Day="14" Year="2003">Tuesday, October 14, 2003</st1:date> <st1:time
Hour="14" Minute="22">2:22 pm</st1:time> <o:p></o:p></p>

<p class=MsoNormal style='margin-left:36.0pt'><b><font size=3
face="Times New Roman"><span style='font-size:12.0pt;font-weight:bold'>Subject</span></font></b>:
Re: [Nagios-users] Problems with check_alive <o:p></o:p></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>> Hi, <br>
> Have a look at you commands.cfg and check the command definiton for <br>
> check_ping / check_host_alive and try running it from the command <br>
> line. <br>
> If it doesn't work, post the full command definition and we can <br>
> take a <br>
> look. <br>
> <br>
> Matthew Wilson <br>
> DC-Sat.net <br>
> <br>
> On Tue, 2003-10-14 at </span></font><st1:time Hour="12" Minute="42">12:42</st1:time>,
grik@student.no wrote: <br>
> > Hello! <br>
> > <br>
> > <br>
> > <br>
> > I have a small problem with the check alive standard check service <br>
> > <br>
> > <br>
> > <br>
> > In my nagios.log I get the following: <br>
> > <br>
> > SERVICE ALERT: hostname; <st1:place>PING</st1:place>;WARNING;HARD;3;
(No output!) <br>
> > <br>
> > For all the hosts <br>
> > <br>
> > I searched a little, but couldnt find anything matching my problem. <br>
> > <br>
> > The nagios server is running on a Solaris 9 server, and I have 6 <br>
> other> Solaris servers that I am watching with Nagios. I was <br>
> thinking that <br>
> > this had something to do with statistics about the icmp packet and <br>
> > tried to add a -v to the check-host-alive command like this: <br>
> > $USER1/check_ping -v -H $HOSTNAME -w etc... <br>
> > This didnt help, so maybe it has nothing to do with the Solaris <br>
> > implementation of ping..? <br>
> > <br>
> > <br>
> > Any advice for a newbie at Nagios ? <br>
> > <br>
> > ------------------------------------------------------- This SF.net <br>
> > email is sponsored by: SF.net Giveback Program. SourceForge.net <br>
> hosts> over 70,000 Open Source Projects. See the people who have <br>
> HELPED US <br>
> > provide better services: Click here: <br>
> > http://sourceforge.net/supporters.php <br>
> > _______________________________________________ Nagios-users mailing <br>
> > list Nagios-users@lists.sourceforge.net <br>
> > https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please <br>
> > include Nagios version, plugin version (-v) and OS when <br>
> reporting any <br>
> > issue. ::: Messages without supporting info will risk being sent to <br>
> > /dev/null <br>
> <br>
> <o:p></o:p></p>

</div>

</body>

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null
</html>