check_ping works fine from command line but cgi shows ping resultsas "unknown"
Larry Naves
lnaves at asc.edu
Thu Mar 17 21:12:58 CET 2005
My services are defined as: check_ping! 3000.0,80% ! 5000.0,100%
Does the spaces ^ or ^ ^ here matter? They work
fine for our UP hosts.
My command is: $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5
(the same as your)
I checked and the /bin/ping on my cent-os-4 system shows:
/bin/ping -n -U -c 5 xxx.xxx.xxx.xxx is
OK
numeric output ^^ user to user latency ^^ and count ^^
Larry Wayne Naves, Jr. "Jay"
Systems Analyst
Computer Sciences Corporation /
Alabama Supercomputer Authority
-----Original Message-----
From: Davy Gaussen [mailto:nagiosadmin at snef.fr]
Sent: Thursday, March 17, 2005 9:35 AM
To: lnaves at asc.edu; Nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] RE: RE: check_ping works fine from command line
but cgi shows ping resultsas "unknown"
What are your arguments ? Here are mine :
check_ping!100.0,20%!500.0,60%
and the command is :
$USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5
However, I think that your /bin/ping command (in your system) have a
different response when a host is unreachable than the check_ping expected.
(sorry for the english)
----- Original Message -----
From: "Larry Naves" <lnaves at asc.edu>
To: <Nagios-users at lists.sourceforge.net>
Sent: Thursday, March 17, 2005 3:23 PM
Subject: [Nagios-users] RE: RE: check_ping works fine from command line but
cgi shows ping resultsas "unknown"
> I am still having this problem after replacing check_ping (1.2) with
(1.3).
> My problem is a little different though check_ping works great when
> the
host
> is reachable, if the host is unreachable (literally not because of a
> down
> parent) the check returns /bin/ping -n -U -c 5 xxx.xxx.xxx.xxx and the
> status is UNKNOWN. Why does the plugin not just return host-down or
> unreachable, etc. Should I try a different check_ping?
>
> >Great!!!
> > Thanks Davy!
> > I unpacked and compiled the nagios-plugins 1.3.1 and extracted >the
> >check_ping into my libexec/ dir and everything started to work >again.
>
> > Davy Gaussen escribió:
> >
> > >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 cd...>
> >To: <nagios-users at li...>
> >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
> >>
> >>
> >>
> >>
> >>
> >
> >
> >
> >
>
>
>
> Larry Wayne Naves, Jr. "Jay"
> Systems Analyst
> Computer Sciences Corporation /
> Alabama Supercomputer Authority
>
> --
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.308 / Virus Database: 266.7.3 - Release Date: 3/15/2005
>
>
>
>
> -------------------------------------------------------
> 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_ide95&alloc_id396&opÌk
> _______________________________________________
> 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
>
--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.7.3 - Release Date: 3/15/2005
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.7.3 - Release Date: 3/15/2005
-------------------------------------------------------
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_ide95&alloc_id396&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