[prev in list] [next in list] [prev in thread] [next in thread] 

List:       nagios-users
Subject:    [Nagios-users] problem with ping
From:       Patricio_López <madpato.lopez () gmail ! com>
Date:       2011-12-23 14:11:47
Message-ID: CAJUfORMNTb7X=1gC+a0xaVFazYa=qvkJF5gO-phw=9icD=YzAQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hello

I am pretty new to nagios and i am trying to install this on a debian vps i
have to monitor 2 other boxes i have.

Ive compiled and installed everything fine, i can see my nagios
webinterface, but i have the following problem:

CRITICAL - Could not interpret output from ping command

I have an error that my host is down this is because the ping command is
not working. Here is some information:

If i do via shell this:

/usr/local/nagios/libexec/check_ping -H 127.0.0.1 -w 100.0,20% -c 500.0,60%
-p 5

I get the mentioned error. Even as root (so i believe its not a problem of
the nagios user or group).

Ive made some google research and found out that sometimes i needed to give
execution permissions to /bin/ping which i did, same results.

So this is what i have in cgi.cfg:

/bin/ping -n -U -c 5 $HOSTADDRESS$

And this is what i have in commands.cfg:

/usr/local/nagios/libexec/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$
-p 5

First one if i try in the command line works, second one does not.


Any help is appreciated, thank you.

[Attachment #5 (text/html)]

<div>Hello</div><div><br></div><div>I am pretty new to nagios and i am tryi=
ng to install this on a debian vps i have to monitor 2 other boxes i have.<=
/div><div><br></div><div>Ive compiled and installed everything fine, i can =
see my nagios webinterface, but i have the following problem:</div>
<div><br></div><div>CRITICAL - Could not interpret output from ping command=
=A0</div><div><br></div><div>I have an error that my host is down this is b=
ecause the ping command is not working. Here is some information:</div><div=
>
<br></div><div>If i do via shell this:</div><div><br></div><div>/usr/local/=
nagios/libexec/check_ping -H 127.0.0.1 -w 100.0,20% -c 500.0,60% -p 5</div>=
<div><br></div><div>I get the mentioned error. Even as root (so i believe i=
ts not a problem of the nagios user or group).</div>
<div><br></div><div>Ive made some google research and found out that someti=
mes i needed to give execution permissions to /bin/ping which i did, same r=
esults.</div><div><br></div><div>So this is what i have in cgi.cfg:</div>
<div><br></div><div>/bin/ping -n -U -c 5 $HOSTADDRESS$</div><div><br></div>=
<div>And this is what i have in commands.cfg:</div><div><br></div><div>/usr=
/local/nagios/libexec/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5<=
/div>
<div><br></div><div>First one if i try in the command line works, second on=
e does not.</div><div><br></div><div><br></div><div>Any help is appreciated=
, thank you.</div>


------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev

_______________________________________________
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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic