[ntp:questions] NTP MRTG graphs?

Pete Stephenson pete+usenet at heypete.com
Thu Jul 26 20:03:42 UTC 2007

I've been interested in using MRTG (or a similar graphing utility) to 
graph various properties of my time server like the offset, jitter, 
frequency, number of unique users, number of abusive users, etc.

I was reviewing David Taylor's page at 
http://www.david-taylor.myby.co.uk/ntp/NTPandMRTG.txt and it's been most 

However, I also see that there are several other public time servers 
that are generating quite detailed graphs and I was wondering if anyone 
would be willing to share the scripts used to get the numerical data 
from NTP, format it into a way that MRTG can interpret, and the MRTG 
config files needed to analyze and graph it.

Since MRTG only deals with integers, it rounds (or truncates, not 100% 
sure) decimal values to the closest integer. This isn't terribly useful, 
as I'd like to see some of the finer changes over time. I attempted to 
multiply all the decimal values by 1000 and have MRTG work with those, 
and this has met with some success, but I'd much rather have the graphs 
show something in a reasonable scale (like 0-20ms offset, rather than 
0-20,000us). Obviously this can be done, as I've seen graphs for NTP 
servers made this way, but I'm getting a headache wrangling (and 
failing) with MRTG to get it right.


Pete Stephenson

More information about the questions mailing list