check_ping works fine from command line but cgi shows ping resultsas "unknown"

Davy Gaussen nagiosadmin at snef.fr
Wed Mar 16 15:08:47 CET 2005


Hi,

I had this problem to, try to install the nagios-plugins version 1.3.x, the
new ones have compatibilities issues with the ping command of some new
system.
It worked fine for me.

Davy

----- Original Message -----
From: "Cristobal Sabroe Yde" <cris at cdc.unrc.edu.ar>
To: <nagios-users at lists.sourceforge.net>
Sent: Wednesday, March 16, 2005 3:02 PM
Subject: [Nagios-users] Re: check_ping works fine from command line but cgi
shows ping resultsas "unknown"


> Hi, I have the exact same problem running SuSE 9.1.
>
> I can use ping and check_ping under the nagios user in command line but
> the cgi returns:
> PING    UNKNOWN   ... /bin/ping -n -U -c 5 xxx.xxx.xxx.xxx
>
> Nagios 2.0b1 (tried 2.0b2 as well)
> Plugins 1.4,
> Dist: SuSE 9.1
> uname -a:  Linux moni 2.6.5-7.147-default #1 Thu Jan 27 09:19:29 UTC
> 2005 i686 athlon i386 GNU/Linux
>
> If anyone could solve this problem, please let me know.
> Thanks!
> ------------------------
>
> 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
>
>
>



-------------------------------------------------------
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