Hello Maarten
On 20.06.2013 20:37, Maarten Deen wrote:
On 2013-06-20 07:42, AlbyVA wrote:
I've been running MRTG to create graphs of my NTP offsets, along
with other stats on bandwidth and system load.
These are the commands I used to get NTP stats from the system
(ubuntu). I'll send the complete script off-list, but this for sake of
comments (maybe I'm completely off here)
RECV=`ntpdc -c iostats |grep 'received packets' | awk '{ print $3 } '`
SENT=`ntpdc -c iostats |grep 'packets sent' | awk '{ print $3 } '`
This two lines look quite familiar to me. ;)
But AlbyVA was asking to graph offsets of the time difference to
peers. But your above command lines get the received and sent
packets of the ntpd. This helps to see how many requests have
been answered from the ntpd. I use it to generate [1] with MRTG.
For other stuff I use collectd, which also can graph ntpd offset,
see [2] (also the outage from the DCF77 signal from Mainflingen /
Frankfurt from last night is visible).
Unfortunately on the FreeBSD system the offset data collection
for ntpd does not properly work, see [3] and [4]. Other data
collection with collectd on FreeBSD are working just fine. I did
not yet find the cause with ntpd, as the configurations are
identical to goliath (the Linux system) where it is working
properly. On FreeBSD it was working once, but a few updates later
it failed and I did not realize in time to be able to check which
update caused it.
[1] http://www.home4u.ch/ntp/
[2]
http://batman.home4u.ch/cgp/host.php?h=goliath.home4u.ch&p=ntpd
[3] http://batman.home4u.ch/cgp/host.php?h=batman.home4u.ch&p=ntpd
[4]
http://batman.home4u.ch/cgp/host.php?h=superman.wenks.ch&p=ntpd
bye
Fabian
_______________________________________________
pool mailing list
[email protected]
http://lists.ntp.org/listinfo/pool