check_fping strangeness
Chet Luther
chet at rcn.com
Thu Aug 15 14:21:48 CEST 2002
Myke,
The fping utility opens a raw socket. Every UNIX I've ever used
restricted this operation to the root user. What I had to do on my system
to get check_fping to work was 'chown root:nagiosgroup' both the fping
binary and check_fping plugin, then 'chmod 4750' them so that they would be
executed with root privileges.
Hope this helps,
Chet Luther
chet at rcn.com
> > Ah!
> >
> > Sorry, I should have read more carefully.
>
> No problem, it took me a while to catch it myself.
>
> > What does your check_fping definition look like?
>
> # 'check_fping' command definition
> define command{
> command_name check_fping
> command_line $USER1$/check_fping $HOSTADDRESS$
> }
>
>
> > Does fping correctly report for up hosts?
>
> It shows OK for both hosts that are up as well as those that are down.
>
> > Also, where did you get the plugin from? (Is it a Nagios plugin, or
> > the old netsaint plugins)?
>
> I'm using the latest release of Nagios plugins.
>
>
> >
> > - Terry
> >
> > On Wednesday, August 14, 2002, at 10:04 PM, Myke Place wrote:
> >
> > > Terry,
> > >
> > > The problem is that the output of the plugins reports the host as
> > > being in
> > > an 'OK' state which of course a host would not be were it down.
> > >
> > > On Wed, 14 Aug 2002, terry wrote:
> > >
> > >> Yeah,
> > >>
> > >> Your problem isn't with Nagios. :)
> > >>
> > >> The plugin is working exactly as it should.
> > >>
> > >> It's reporting what fping is telling it.
> > >>
> > >> fping thinks your host is unreachable.
> > >>
> > >> - Terry
> > >>
> > >> On Wednesday, August 14, 2002, at 08:51 AM, Myke Place wrote:
> > >>
> > >>> Yes it does. Here is the output of fping:
> > >>>
> > >>> fping deadhost
> > >>> deadhost is unreachable
> > >>>
> > >>> Any ideas?
> > >>>
> > >>>> Does fping work on the commandline?
> > >>>>
> > >>>> - Terry
> > >>>
> > >>> On Tuesday, August 13, 2002, at 01:36 PM, Myke Place wrote:
> > >>>
> > >>>> Hi,
> > >>>>
> > >>>> I'm having a bit of trouble getting check_fping to report the
status
> > >>>> of a
> > >>>> host correctly to Nagios. The problem that exists as follows when
> > >>>> using
> > >>>> check_fping to contact a host that I know is unreachable.
> > >>>>
> > >>>> ./check_fping deadhost
> > >>>> FPING OK - deadhost (loss=100.000000%, rta=0.000000 ms)
> > >>>
> > >>>> fping: Version 2.4b2_to $Date: 2002/01/16 00:33:42 $
> > >>>> fping: comments to david at remote.net
> > >>>>
> > >>>> Is there something I'm missing here? Does check_fping need some
> > >>>> special
> > >>>> arguments to work properly in checkcommands.cfg?
> > >>>>
> > >>>> Any help would be greatly appreciated. Thanks.
> > >>>>
> > >>>
> > >>> --------------------
> > >>> Myke Place
> > >>> mp at xmission.com
> > >>> 801.539.0852
> > >>> www.radiojournal.org
> > >>>
> > >>>
> > >>>
> > >>> -------------------------------------------------------
> > >>> This sf.net email is sponsored by: Dice - The leading online job
> > >>> board
> > >>> for high-tech professionals. Search and apply for tech jobs today!
> > >>> http://seeker.dice.com/seeker.epl?rel_code=31
> > >>> _______________________________________________
> > >>> Nagios-users mailing list
> > >>> Nagios-users at lists.sourceforge.net
> > >>> https://lists.sourceforge.net/lists/listinfo/nagios-users
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
More information about the Users
mailing list