[time-nuts] monitoring NTP servers?

Brian Inglis Brian.Inglis at SystematicSw.ab.ca
Wed Aug 26 15:02:39 EDT 2015

On 2015-08-26 01:47, Anders Wallin wrote:
> Hi all,
> Is there a ready made set of scripts for monitoring a bunch of NTP servers?
> Preferably for generic unix/linux like ubuntu.
> I imagine it would look something like:
> 1. measure data with a test machine, either use output of "ntpq -p" or
> perhaps python and ntplib. Variable measurement interval, perhaps 60s or so.
> 2. store relevant data into RRDTool database (offsets, delay, jitter, etc)
> 3. produce graphs with RRDGraph, and possibly Alarms (e-mail?) if a server
> goes offline or way out of sync.

Servers run by others or your own?
If your own, implied above, enable all relevant statistics collection,
and use your favourite plotting tool to generate graphs to your taste
from the daily *stats files.
Wrap the plotting in cron scripts and schedule them to your taste.
Use of ntpq should really be limited to checking the state of your
servers and their sources.
My taste runs to bash, awk, gnuplot, html and png output - YMMV.
PM if interested.
Take care. Thanks, Brian Inglis

More information about the time-nuts mailing list