check_ping... not working

Karl DeBisschop karl at debisschop.net
Thu Feb 20 05:33:21 CET 2003


On Wed, 2003-02-19 at 22:26, bvierra at rapidgrid.com wrote:
> not sure if this is the correct place and if it isnt please no flames just 
> point me to the right place :)
> 
> I am using the check_ping from command is fine, but for some reason when I do 
> it through service I get this response "/bin/ping -n -U -c 1 207.44.152.1" and 
> it shows up as down, but it is responding to ping.
> Here is what I have in services.cfg:
> define service{
>         use                     cpanel-generic
>         host_name               rs-router1
>         service_description     PING
>         check_command           check_ping!100.0,20%!500.0,60%
> }
> 
> When I run it from the command prompt I get this:
> root at server1 [/usr/local/nagios/libexec]# ./check_ping -H XXX.XXX.XXX.XXX -w 
> 100.0,20% -c 500.0,60%
> PING OK - Packet loss = 0%, RTA = 0.36 ms

since check_ping can have troubles finding correct syntax for ping,
depending on OS, the fallback output is the syntax of the command issued
so you can troubleshoot. That's the message you are seeing.

Since it runs on the command line, I suspect either your OS is hardened
and the unprivleged nagios user cannot run ping.

--
Karl



-------------------------------------------------------
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge
_______________________________________________
Nagios-users mailing list
Nagios-users at 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





More information about the Users mailing list