Help with check_ntp
Michael Jewett
mgj at unb.ca
Tue Feb 11 19:31:53 CET 2003
I did a look at the regular expression on line 254 or so. It didn't appear
to be correct, so I did a different match and it worked.
I don't know if I did it correct or not, but here is the line I changed,
original first and new version next.
old
if
(/^(\*|o)([-0-9.\s]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([lumb]+)\s+([-0-9.]+)\s+(
[-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)/) {
new
if
(/^(\*|o)(\d+\.\d+\.\d+\.\d+)\s+(.+)\s+([-0-9.]+)\s+([lumb]+)\s+([-0-9.]+)\s
+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)/) {
Michael
----- Original Message -----
From: "Michael Jewett" <mgj at unb.ca>
To: "Subhendu Ghosh" <sghosh at sghosh.org>
Cc: <nagios-users at lists.sourceforge.net>
Sent: Tuesday, February 11, 2003 2:12 PM
Subject: Re: [Nagios-users] Help with check_ntp
> hi,
>
> I got the latest version of the check_ntp(v1.12) and it seemed to work a
> little bit. but it complained some, so looking at the source, I noticed
that
> it was making reference to things in utils, so I got the latest version of
> that as well, since I noticed a change in that.
>
> So I currently have:
>
> check_ntp --> 1.12
> utils.pm --> 1.6
>
> Now my error message is as follows, again using verbose mode:
>
> ./check_ntp -H xxx.xxx.xxx.xxx -v
> server xxx.xxx.xxx.xxx, stratum 2, offset 0.005577, delay 0.02592
> ntperr = 0
> 11 Feb 14:06:39 ntpdate[11392]: adjust time server 131.202.3.20 offset
> 0.005577 sec
> ntperr = 0
> remote refid st t when poll reach delay offset
> jitter
>
============================================================================
> ==
> 192.68.54.20 0.0.0.0 16 - - 1024 0 0.000 0.000
> 16000.0
> 198.164.163.107 0.0.0.0 16 - - 1024 0 0.000 0.000
> 16000.0
> x128.118.46.3 .WWV. 1 u 510 1024 377 79.120 -36.329
> 1.130
> +128.118.25.3 192.5.41.209 2 u 470 1024 377 79.150 -0.815
> 0.980
> Candiate count= 1
> 129.116.3.5 0.0.0.0 16 - - 1024 0 0.000 0.000
> 16000.0
> yyy.yyy.yyy.yyy 0.0.0.0 16 - - 1024 0 0.000 0.000
> 16000.0
> 132.246.168.80 0.0.0.0 16 - - 1024 0 0.000 0.000
> 16000.0
> +132.246.168.2 .PPS. 1 u 851 1024 377 25.010 -0.283
> 0.200
> Candiate count= 2
> *132.246.168.3 .PPS. 1 u 216 1024 377 24.980 -0.554
> 0.240
> Candiate count= 3
> Use of uninitialized value at ./check_ntp line 297.
> UNKNOWN: Jitter too high
>
> Any ideas?
>
> Michael
>
>
> ----- Original Message -----
> From: "Subhendu Ghosh" <sghosh at sghosh.org>
> To: "Michael Jewett" <mgj at unb.ca>
> Cc: <nagios-users at lists.sourceforge.net>
> Sent: Tuesday, February 11, 2003 12:01 PM
> Subject: Re: [Nagios-users] Help with check_ntp
>
>
> > On Tue, 11 Feb 2003, Michael Jewett wrote:
> >
> > > Hi,
> > >
> > > I'm trying to get the check_ntp to work on my newly installed Nagios
> setup.
> > > Here is what I did for running it and the output...
> > >
> > > ./check_ntp -H ntp.domain.ca -v
> > > server xxx.xxx.xxx.xxx, stratum 2, offset -0.000924, delay 0.02592
> > > ntperr = 0
> > > 29 Jan 15:33:38 ntpdate[9302]: adjust time server xxx.xxx.xxx.xxx
> > > offset -0.000924 sec
> > > ntperr = 0
> > > ***Server reports a format error in the received packet (shouldn't
> happen)
> > > UNKNOWN: Dispersion too high
> > >
> > > Does anyone have a suggestion on how to fix it?
> > >
> > > This worked great with Netsaint.
> > >
> >
> > Version info helps.
> >
> > Can you use the latest CVS - check_ntp now uses ntpdate and ntpq (over
> > ntpdc)
> >
> > --
> > -sg
> >
>
>
>
> -------------------------------------------------------
> This SF.NET email is sponsored by:
> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> http://www.vasoftware.com
> _______________________________________________
> 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:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
More information about the Users
mailing list