check_fping strangeness
Subhendu Ghosh
sghosh at sghosh.org
Thu Aug 15 20:28:29 CEST 2002
Following is the command that i used to call fping from the plugin.
command_line = ssprintf
(command_line, "%s -b %d -c %d %s",
PATH_TO_FPING, packet_size, packet_count, server);
Can you run the fping from the CL and report the result and the result of
"echo $?"
also run check_fping in verbose mode to see what the exact call is.
-sg
On Thu, 15 Aug 2002, Terry Simons wrote:
> Is it possible that the fping plugin is just returning incorrect
> information to Nagios?
>
> That's what it seems like, but it's hard to say.
>
> You might want to look at the source for the plugin, and see if you can
> figure out what it's doing.
>
> - Terry
>
> On Wednesday, August 14, 2002, at 10:58 PM, Myke Place wrote:
>
> >
> > On Wed, 14 Aug 2002, terry wrote:
> >
> >> 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: 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
> _______________________________________________
> 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