[LinuxPPS] ntpstat mrtg thingie

Udo van den Heuvel udovdh at xs4all.nl
Fri Jun 2 16:37:15 CEST 2006


Hello,

I have this in my mrtg.cfg to make the graphs at
pindarots.xs4all.nl/mrtg/ntpstat.html. Maybe it's useful to you or it
can be improved?

Udo


Target[ntpstat]: `/usr/sbin/ntpdc -c kerninfo|/bin/awk '/pll offset:/
{o=$3; if (o < 0) o = -o; print o*1000000;} /estimated error/ {print
$3*1000000;print 1;print "ntpstat"}'`
#Target[ntpstat]: `/usr/sbin/ntptime |/bin/awk '/offset/ {o = $2; if (o
< 0) o = -o; print o;} /maximum error.*,$/ {print $7;print 1;print
"ntpstat"}'`
Title[ntpstat]: NTP Stats
PageTop[ntpstat]: <H1>NTP Statistics</H1>
MaxBytes[ntpstat]: 100000
AbsMax[ntpstat]: 100000
Options[ntpstat]: gauge, growright, nopercent, noinfo
#Options[ntpstat]: growright, nopercent, noinfo
LegendI[ntpstat]: &nbsp;Absolute Offset&nbsp;
LegendO[ntpstat]: &nbsp;Estimated error&nbsp;
Ylegend[ntpstat]: useconds
ShortLegend[ntpstat]: us



More information about the LinuxPPS mailing list