[Nagiosplug-help] check_ntp errors cause UNKNOWN status
Aaron Carr
aaronhcarr at gmail.com
Wed Aug 24 12:10:16 CEST 2005
All I get is 156.70.35.1: timed out, nothing received
***Request timed out
This is for multiple hosts that definitely DO have ntpd running on
them. If I use "ntpdate host", it works fine.
Perhaps some of the features have been disabled? There are some areas
of the company that are freakishly locked down.
Aaron
On 8/24/05, Subhendu Ghosh <sghosh at sghosh.org> wrote:
>
> Can you check if "ntpq -np host" gets a response - if not you need to
> modify ntp.conf access control on host.
>
> On Wed, 24 Aug 2005, Aaron Carr wrote:
>
> > I removed the code you mentioned, and tried it on both Linux and
> > Solaris hosts, but I'm still getting the same error on both:
> >
> > "Use of uninitialized value in division (/) at ./check_ntp line 421."
> >
> > Line 421 is "print ("NTP $key: $answer|offset=$offset, jitter=" .
> > $jitter/1000 . ",peer_stratum=$stratum\n");"
> >
> > On 8/24/05, Subhendu Ghosh <sghosh at sghosh.org> wrote:
> >>
> >> Bug 1267741
> >>
> >> Can you remove the $jitter = statement in the else branch at line 309:
> >> }else {
> >> print "No match!\n" if $verbose;
> >> # $jitter = '(not parsed)';
> >> }
> >>
> >>
> >> On Wed, 24 Aug 2005, Aaron Carr wrote:
> >>
> >>> plugin version - 1.4.1
> >>> ntpdc version - 4.2.0a at 1.1190-r
> >>> ntpq version - 4.2.0a at 1.1190-r
> >>>
> >>> On 8/24/05, Subhendu Ghosh <sghosh at sghosh.org> wrote:
> >>>> On Wed, 24 Aug 2005, Aaron Carr wrote:
> >>>>
> >>>>> I've been digging through the archives, but I don't see any solid
> >>>>> answers to this question.
> >>>>>
> >>>>> If I execute check_ntp at the command line, I get the following as my
> >>>>> first line of output:
> >>>>> "Use of uninitialized value in division (/) at check_ntp line 424."
> >>>>> The next line reads "NTP OK: Offset 0.023199 secs|offset=0.023199,
> >>>>> jitter=0,peer_stratum=5", which is great, but with the first line
> >>>>> being the error, Nagios has already changed the status to "UNKNOWN".
> >>>>>
> >>>>> Does anyone have a working check_ntp?
> >>>>>
> >>>>> Thanks.
> >>>>>
> >>>>> Aaron
> >>>>>
> >>>>
> >>>> plugin version
> >>>> ntpdc version
> >>>> ntpq version
> >>>>
> >>>> --
> >>>> -sg
> >>>>
> >>>>
> >>
> >> --
> >>
> >>
> >>
> >> -------------------------------------------------------
> >> SF.Net email is Sponsored by the Better Software Conference & EXPO
> >> September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
> >> Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
> >> Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
> >> _______________________________________________
> >> Nagiosplug-help mailing list
> >> Nagiosplug-help at lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> >> ::: Please include plugins version (-v) and OS when reporting any issue.
> >> ::: Messages without supporting info will risk being sent to /dev/null
> >>
> >
>
> --
>
>
>
> -------------------------------------------------------
> SF.Net email is Sponsored by the Better Software Conference & EXPO
> September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
> Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
> Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
> _______________________________________________
> Nagiosplug-help mailing list
> Nagiosplug-help at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> ::: Please include plugins version (-v) and OS when reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
More information about the Help
mailing list