check_ping works fine from command line but cgi shows ping results as 'unknown'

Arno Lehmann al at its-lehmann.de
Tue Mar 8 09:59:04 CET 2005


Dirk,

have you tried running ping (or the plugin) as user nagios or as root?

Probably it's an access rights problem... IIRC Fedora activates selinux 
enhancements and thus it might be necessary to change these to allow the 
nagios user access to the network interface.

Arno

Dirk Westfal wrote:

> Hi,
> 
> I`ve the following problem:
> 
> .../libexec/check_ping -w 200.0,20% -c 500.0,60% www.fvsh.de
> PING OK - Packet loss = 0%, RTA = 17.07 ms
> 
> But the CGI`s show this:
> 
> Host Status:     UNREACHABLE
> Status Information:    /bin/ping -n -U -c 1 www.fvsh.de
> 
> And trying the above from commandline returns this:
> [root at helios etc]# /bin/ping -n -U -c 1 www.fvsh.de
> PING www.fvsh.de (212.227.42.84) 56(84) bytes of data.
> 64 bytes from 212.227.42.84: icmp_seq=0 ttl=59 time=17.6 ms
> 
> --- www.fvsh.de ping statistics ---
> 1 packets transmitted, 1 received, 0% packet loss, time 0ms
> rtt min/avg/max/mdev = 17.602/17.602/17.602/0.000 ms, pipe 2
> 
> System: nagios 1.2, plugins 1.4 , OS: Fedora Core 3
> 
> 
> I found some posts on the net describing exactly this problem, however 
> none of the posters ever got a reply.
> 
> Thanks for help!
> 
> Dirk Westfal
> 
> -- 
> Dirk Westfal /Admin/RHCE/QAR
> fedora core 3 livecd: www.linux4all.de
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> 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
> 

-- 
IT-Service Lehmann                    al at its-lehmann.de
Arno Lehmann                  http://www.its-lehmann.de


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
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