Não é uma resposta precisa à sua pergunta, mas vejo que você mencionou que agora usa um script do gnuplot que analisa / var / log / ntp / loopstats. Eu faço o mesmo, e abaixo está o que eu mesmo uso.
Se alguém estiver fazendo algo melhor, eu ficaria curioso também.
#! /usr/bin/gnuplot
# Remember to check you have these lines in /etc/ntp.conf and that ntpd is actually running:
# statsdir /var/log/ntpstats/
# statistics loopstats peerstats clockstats
# filegen loopstats file loopstats type day enable
# filegen peerstats file peerstats type day enable
# filegen clockstats file clockstats type day enable
# Resolution: fullscreen
set term x11 size 'xrandr | awk '/\*/{sub(/x/,",");print ; exit}''
set grid
set bars 0.4
set y2tics
set y2range [0:]
set ytics nomirror
set xdata time
set timefmt "%s"
set format x "%T"
set title "NTP statistics"
set ylabel "Clock offset / Roundtrip delay (ms)"
set y2label "Frequency offset (seconds per day)"
set xlabel "Time of day"
local_time = 'date +%s --utc -d "12:00:00 $(date +%z)"'
utc_time = 'date +%s --utc -d "12:00:00"'
localdifferencefromUTC = utc_time - local_time
timeoffsettoday = 'date +%s --utc -d "today 0:00"' + localdifferencefromUTC
plot \
"/var/log/ntpstats/loopstats" u (+timeoffsettoday):(*1000):(*1000/2) t "Clock offset" w errorlines lt 1 lw 2 pt 187, \
"/var/log/ntpstats/peerstats" u (+timeoffsettoday):(*1000):(*1000/2) t "Roundtrip delay" w errorbars lt 26 pt 26,\
"/var/log/ntpstats/loopstats" u (+timeoffsettoday):(*0.0864):(*0.0864/2) axes x1y2 t "Frequency offset" w errorline lt 7 pt 65,\
0 w l lt -1
pause mouse close