[ntp:questions] Peer Review of ntpq -c rv

Alby VA albyva at empire.org
Fri Mar 9 19:10:28 UTC 2012


On Mar 9, 11:43 am, David Lord <sn... at lordynet.org> wrote:
> Alby VA wrote:
> > On Mar 8, 6:43 am, David Lord <sn... at lordynet.org> wrote:
> >> Alby VA wrote:
>
> >> ....
>
> >>>>>> David
> >>>>>  Does this mean there is something I need to tweek to get
> >>>>> my offsets lower? Could the delays from the remote NTP
> >>>>> servers be my issue?
> >>>> I don't know if that's the case. I setup my two servers
> >>>> to use the nearest ntp servers that didn't share the same
> >>>> sources. There are tools to assist in the ntp distribution
> >>>> or you can select from the list of public servers at
> >>>> ntp.org. The stratum is usually of no importance. I had
> >>>> several stratum3 servers in my initial selection but the
> >>>> same servers are now stratum2 or stratum1. By nearest, I
> >>>> mean those with shortest delay.
> >>>> I'd remove the sources with highest delay, maybe just by
> >>>> marking as noselect.
> >>>> My own server with gps/pps source gives a couple of blips
> >>>> each morning due to load from cron jobs. The other pcs
> >>>> show variations from load and from temperature.
> >>>>http://www.lordynet.org.uk/mrtg/stats/ntp/
> >>>> David
> >>>  David:
> >>>  Can I get your mrtg.cfg and perl script for those graph/stats?
> >>> I think mine are just mislabeled...
> >> They can be downloaded from
>
> >> <ftp://ftp0.lordynet.org.uk/pub/os/NetBSD/mrtg_ntp.tbz>
>
> >> David
>
> > David:
>
> >  I downloaded your configs and setup MRTG to run GetNTPus_ntpq.pl,
> > but it doesn't seem to be pulling any data. Did I miss something?
>
> > URL:http://godzilla.empire.org/
>
> Have you tried running GetNTPus_ntpq.pl from commandline.
>
> # perl /root/scripts/mrtg/GetNTPus_ntpq.pl me6000
> 2
> 0
> 0
> 0
>
> You should get the offset in usec reported in either of
> the first two lines depending if positive or negative.
>
> If that doesn't produce a meaningful output, is output
> from "ntpq -c rv -p" ok?
>
> David
>

David, just shoot me right now.  I should have checked my
logs before saying anything. Its a typo on my part.  Doh.
I listed it as GetNTPus_ntpq.pl instead of GetNTPus.pl



From: root at godzilla (Cron Daemon)
Date: Fri, 9 Mar 2012 14:05:00 -0500 (EST)
To: root at godzilla
Subject: Cron <root at godzilla> /usr/local/bin/mrtg /etc/mrtg.cfg

Can't open perl script "/var/log/ntp/GetNTPus_ntpq.pl": No such file
or directory
2012-03-09 14:05:00: WARNING: Could not get any data from external
command 'perl
+/var/log/ntp/GetNTPus_ntpq.pl godzilla'
Maybe the external command did not even start. (Illegal seek)






More information about the questions mailing list