#! /bin/sh # rebuilt for the ntpq stats 27 mar 2006 # added utc date to images 11 feb 2007 # added root dispersion 9 jul 2007 XBIN=/home/gnu/xbin RRD_BIN=/usr/local/rrd/bin RRDPAGE=/web/apache/htdocs/ntp/rrd cd ${RRDPAGE} ${XBIN}/do-ntp-rrdstats smidge ${XBIN}/do-ntp-rrdstats ring ${XBIN}/do-ntp-rrdstats thrall ${XBIN}/do-ntp-rrdstats wraith ${RRD_BIN}/rrdtool graph \ --imgformat PNG ${RRDPAGE}/smidge-ntp-offset.png \ --vertical-label "smidge" \ --title "`TZ=UTC date`" \ --start -93600 \ DEF:offset=${RRDPAGE}/smidge.rrd:offset:AVERAGE \ CDEF:noffset=offset,1000,/ \ LINE1:noffset#0000FF:"offset" \ GPRINT:noffset:LAST:%le ${RRD_BIN}/rrdtool graph \ --imgformat PNG ${RRDPAGE}/smidge-ntp-jitter.png \ --vertical-label "smidge" \ --title "`TZ=UTC date`" \ --start -93600 \ DEF:jitter=${RRDPAGE}/smidge.rrd:jitter:AVERAGE \ CDEF:njitter=jitter,1000,/ \ LINE1:njitter#0000FF:"jitter" \ GPRINT:njitter:LAST:%le ${RRD_BIN}/rrdtool graph \ --imgformat PNG ${RRDPAGE}/smidge-ntp-noise.png \ --vertical-label "smidge" \ --title "`TZ=UTC date`" \ --start -93600 \ DEF:noise=${RRDPAGE}/smidge.rrd:noise:AVERAGE \ CDEF:nnoise=noise,1000,/ \ LINE1:nnoise#0000FF:"noise" \ GPRINT:nnoise:LAST:%le ${RRD_BIN}/rrdtool graph \ --imgformat PNG ${RRDPAGE}/smidge-ntp-stability.png \ --vertical-label "smidge" \ --title "`TZ=UTC date`" \ --start -93600 \ DEF:stability=${RRDPAGE}/smidge.rrd:stability:AVERAGE \ LINE1:stability#0000FF:"stability (ppm)" \ GPRINT:stability:LAST:%le ${RRD_BIN}/rrdtool graph \ --imgformat PNG ${RRDPAGE}/smidge-ntp-freq.png \ --alt-autoscale \ --vertical-label "smidge" \ --title "`TZ=UTC date`" \ --start -93600 \ DEF:freq=${RRDPAGE}/smidge.rrd:freq:AVERAGE \ LINE1:freq#0000FF:"frequency (ppm)" \ GPRINT:freq:LAST:%lf ${RRD_BIN}/rrdtool graph \ --imgformat PNG ${RRDPAGE}/smidge-ntp-disp.png \ --alt-autoscale \ --vertical-label "smidge" \ --title "`TZ=UTC date`" \ --start -93600 \ DEF:disp=${RRDPAGE}/smidge.rrd:disp:AVERAGE \ CDEF:ndisp=disp,1000,/ \ LINE1:ndisp#0000FF:"dispersion" \ GPRINT:ndisp:LAST:%lf # fat smidge ${RRD_BIN}/rrdtool graph --imgformat PNG ${RRDPAGE}/smidge-week-ntp-offset.png \ --vertical-label "smidge" \ --title "`TZ=UTC date`" \ --start -691200 \ DEF:offset=${RRDPAGE}/smidge.rrd:offset:AVERAGE \ CDEF:noffset=offset,1000,/ \ LINE1:noffset#0000FF:"offset" \ GPRINT:noffset:LAST:%le ${RRD_BIN}/rrdtool graph --imgformat PNG ${RRDPAGE}/smidge-week-ntp-jitter.png \ --vertical-label "smidge" \ --title "`TZ=UTC date`" \ --start -691200 \ DEF:jitter=${RRDPAGE}/smidge.rrd:jitter:AVERAGE \ CDEF:njitter=jitter,1000,/ \ LINE1:njitter#0000FF:"jitter" \ GPRINT:njitter:LAST:%le ${RRD_BIN}/rrdtool graph --imgformat PNG ${RRDPAGE}/smidge-week-ntp-noise.png \ --vertical-label "smidge" \ --title "`TZ=UTC date`" \ --start -691200 \ DEF:noise=${RRDPAGE}/smidge.rrd:noise:AVERAGE \ CDEF:nnoise=noise,1000,/ \ LINE1:nnoise#0000FF:"noise" \ GPRINT:nnoise:LAST:%le ${RRD_BIN}/rrdtool graph --imgformat PNG ${RRDPAGE}/smidge-week-ntp-stability.png \ --vertical-label "smidge" \ --title "`TZ=UTC date`" \ --start -691200 \ DEF:stability=${RRDPAGE}/smidge.rrd:stability:AVERAGE \ LINE1:stability#0000FF:"stability (ppm)" \ GPRINT:stability:LAST:%le ${RRD_BIN}/rrdtool graph \ --imgformat PNG ${RRDPAGE}/smidge-week-ntp-freq.png \ --alt-autoscale \ --vertical-label "smidge" \ --title "`TZ=UTC date`" \ --start -691200 \ DEF:freq=${RRDPAGE}/smidge.rrd:freq:AVERAGE \ LINE1:freq#0000FF:"frequency (ppm)" \ GPRINT:freq:LAST:%lf ${RRD_BIN}/rrdtool graph \ --imgformat PNG ${RRDPAGE}/smidge-week-ntp-disp.png \ --alt-autoscale \ --vertical-label "smidge" \ --title "`TZ=UTC date`" \ --start -691200 \ DEF:disp=${RRDPAGE}/smidge.rrd:disp:AVERAGE \ CDEF:ndisp=disp,1000,/ \ LINE1:ndisp#0000FF:"dispersion" \ GPRINT:ndisp:LAST:%lf #end of smidge # thrall ${RRD_BIN}/rrdtool graph --imgformat PNG ${RRDPAGE}/thrall-ntp-offset.png \ --vertical-label "thrall" \ --title "`TZ=UTC date`" \ --start -93600 \ DEF:offset=${RRDPAGE}/thrall.rrd:offset:AVERAGE \ CDEF:noffset=offset,1000,/ \ LINE1:noffset#0000FF:"offset" \ GPRINT:noffset:LAST:%le ${RRD_BIN}/rrdtool graph --imgformat PNG ${RRDPAGE}/thrall-ntp-jitter.png \ --vertical-label "thrall" \ --title "`TZ=UTC date`" \ --start -93600 \ DEF:jitter=${RRDPAGE}/thrall.rrd:jitter:AVERAGE \ CDEF:njitter=jitter,1000,/ \ LINE1:njitter#0000FF:"jitter" \ GPRINT:njitter:LAST:%le ${RRD_BIN}/rrdtool graph --imgformat PNG ${RRDPAGE}/thrall-ntp-noise.png \ --vertical-label "thrall" \ --title "`TZ=UTC date`" \ --start -93600 \ DEF:noise=${RRDPAGE}/thrall.rrd:noise:AVERAGE \ CDEF:nnoise=noise,1000,/ \ LINE1:nnoise#0000FF:"noise" \ GPRINT:nnoise:LAST:%le ${RRD_BIN}/rrdtool graph --imgformat PNG ${RRDPAGE}/thrall-ntp-stability.png \ --vertical-label "thrall" \ --title "`TZ=UTC date`" \ --start -93600 \ DEF:stability=${RRDPAGE}/thrall.rrd:stability:AVERAGE \ LINE1:stability#0000FF:"stability (ppm)" \ GPRINT:stability:LAST:%le ${RRD_BIN}/rrdtool graph \ --imgformat PNG ${RRDPAGE}/thrall-ntp-freq.png \ --vertical-label "thrall" \ --title "`TZ=UTC date`" \ --alt-autoscale \ --start -93600 \ DEF:freq=${RRDPAGE}/thrall.rrd:freq:AVERAGE \ LINE1:freq#0000FF:"frequency (ppm)" \ GPRINT:freq:LAST:%lf ${RRD_BIN}/rrdtool graph \ --imgformat PNG ${RRDPAGE}/thrall-ntp-disp.png \ --vertical-label "thrall" \ --title "`TZ=UTC date`" \ --alt-autoscale \ --start -93600 \ DEF:disp=${RRDPAGE}/thrall.rrd:disp:AVERAGE \ CDEF:ndisp=disp,1000,/ \ LINE1:ndisp#0000FF:"dispersion" \ GPRINT:ndisp:LAST:%lf # fat thrall ${RRD_BIN}/rrdtool graph --imgformat PNG ${RRDPAGE}/thrall-week-ntp-offset.png \ --vertical-label "thrall" \ --title "`TZ=UTC date`" \ --start -691200 \ DEF:offset=${RRDPAGE}/thrall.rrd:offset:AVERAGE \ CDEF:noffset=offset,1000,/ \ LINE1:noffset#0000FF:"offset" \ GPRINT:noffset:LAST:%le ${RRD_BIN}/rrdtool graph --imgformat PNG ${RRDPAGE}/thrall-week-ntp-jitter.png \ --vertical-label "thrall" \ --title "`TZ=UTC date`" \ --start -691200 \ DEF:jitter=${RRDPAGE}/thrall.rrd:jitter:AVERAGE \ CDEF:njitter=jitter,1000,/ \ LINE1:njitter#0000FF:"jitter" \ GPRINT:njitter:LAST:%le ${RRD_BIN}/rrdtool graph --imgformat PNG ${RRDPAGE}/thrall-week-ntp-noise.png \ --vertical-label "thrall" \ --title "`TZ=UTC date`" \ --start -691200 \ DEF:noise=${RRDPAGE}/thrall.rrd:noise:AVERAGE \ CDEF:nnoise=noise,1000,/ \ LINE1:nnoise#0000FF:"noise" \ GPRINT:nnoise:LAST:%le ${RRD_BIN}/rrdtool graph --imgformat PNG ${RRDPAGE}/thrall-week-ntp-stability.png \ --vertical-label "thrall" \ --title "`TZ=UTC date`" \ --start -691200 \ DEF:stability=${RRDPAGE}/thrall.rrd:stability:AVERAGE \ LINE1:stability#0000FF:"stability (ppm)" \ GPRINT:stability:LAST:%le ${RRD_BIN}/rrdtool graph \ --imgformat PNG ${RRDPAGE}/thrall-week-ntp-freq.png \ --alt-autoscale \ --vertical-label "thrall" \ --title "`TZ=UTC date`" \ --start -691200 \ DEF:freq=${RRDPAGE}/thrall.rrd:freq:AVERAGE \ LINE1:freq#0000FF:"frequency (ppm)" \ GPRINT:freq:LAST:%lf ${RRD_BIN}/rrdtool graph \ --imgformat PNG ${RRDPAGE}/thrall-week-ntp-disp.png \ --alt-autoscale \ --vertical-label "thrall" \ --title "`TZ=UTC date`" \ --start -691200 \ DEF:disp=${RRDPAGE}/thrall.rrd:disp:AVERAGE \ CDEF:ndisp=disp,1000,/ \ LINE1:ndisp#0000FF:"dispersion" \ GPRINT:ndisp:LAST:%lf #end of thrall # ring ${RRD_BIN}/rrdtool graph --imgformat PNG ${RRDPAGE}/ring-ntp-offset.png \ --vertical-label "ring" \ --title "`TZ=UTC date`" \ --start -93600 \ DEF:offset=${RRDPAGE}/ring.rrd:offset:AVERAGE \ CDEF:noffset=offset,1000,/ \ LINE1:noffset#0000FF:"offset" \ GPRINT:noffset:LAST:%le ${RRD_BIN}/rrdtool graph --imgformat PNG ${RRDPAGE}/ring-ntp-jitter.png \ --vertical-label "ring" \ --title "`TZ=UTC date`" \ --start -93600 \ DEF:jitter=${RRDPAGE}/ring.rrd:jitter:AVERAGE \ CDEF:njitter=jitter,1000,/ \ LINE1:njitter#0000FF:"jitter" \ GPRINT:njitter:LAST:%le ${RRD_BIN}/rrdtool graph --imgformat PNG ${RRDPAGE}/ring-ntp-noise.png \ --vertical-label "ring" \ --title "`TZ=UTC date`" \ --start -93600 \ DEF:noise=${RRDPAGE}/ring.rrd:noise:AVERAGE \ CDEF:nnoise=noise,1000,/ \ LINE1:nnoise#0000FF:"noise" \ GPRINT:nnoise:LAST:%le ${RRD_BIN}/rrdtool graph --imgformat PNG ${RRDPAGE}/ring-ntp-stability.png \ --vertical-label "ring" \ --title "`TZ=UTC date`" \ --start -93600 \ DEF:stability=${RRDPAGE}/ring.rrd:stability:AVERAGE \ LINE1:stability#0000FF:"stability (ppm)" \ GPRINT:stability:LAST:%le ${RRD_BIN}/rrdtool graph \ --imgformat PNG ${RRDPAGE}/ring-ntp-freq.png \ --alt-autoscale \ --vertical-label "ring" \ --title "`TZ=UTC date`" \ --start -93600 \ DEF:freq=${RRDPAGE}/ring.rrd:freq:AVERAGE \ LINE1:freq#0000FF:"frequency (ppm)" \ GPRINT:freq:LAST:%lf ${RRD_BIN}/rrdtool graph \ --imgformat PNG ${RRDPAGE}/ring-ntp-disp.png \ --alt-autoscale \ --vertical-label "ring" \ --title "`TZ=UTC date`" \ --start -93600 \ DEF:disp=${RRDPAGE}/ring.rrd:disp:AVERAGE \ CDEF:ndisp=disp,1000,/ \ LINE1:ndisp#0000FF:"dispersion" \ GPRINT:ndisp:LAST:%lf # fat ring ${RRD_BIN}/rrdtool graph --imgformat PNG ${RRDPAGE}/ring-week-ntp-offset.png \ --vertical-label "ring" \ --title "`TZ=UTC date`" \ --start -691200 \ DEF:offset=${RRDPAGE}/ring.rrd:offset:AVERAGE \ CDEF:noffset=offset,1000,/ \ LINE1:noffset#0000FF:"offset" \ GPRINT:noffset:LAST:%le ${RRD_BIN}/rrdtool graph --imgformat PNG ${RRDPAGE}/ring-week-ntp-jitter.png \ --vertical-label "ring" \ --title "`TZ=UTC date`" \ --start -691200 \ DEF:jitter=${RRDPAGE}/ring.rrd:jitter:AVERAGE \ CDEF:njitter=jitter,1000,/ \ LINE1:njitter#0000FF:"jitter" \ GPRINT:njitter:LAST:%le ${RRD_BIN}/rrdtool graph --imgformat PNG ${RRDPAGE}/ring-week-ntp-noise.png \ --vertical-label "ring" \ --title "`TZ=UTC date`" \ --start -691200 \ DEF:noise=${RRDPAGE}/ring.rrd:noise:AVERAGE \ CDEF:nnoise=noise,1000,/ \ LINE1:nnoise#0000FF:"noise" \ GPRINT:nnoise:LAST:%le ${RRD_BIN}/rrdtool graph --imgformat PNG ${RRDPAGE}/ring-week-ntp-stability.png \ --vertical-label "ring" \ --title "`TZ=UTC date`" \ --start -691200 \ DEF:stability=${RRDPAGE}/ring.rrd:stability:AVERAGE \ LINE1:stability#0000FF:"stability (ppm)" \ GPRINT:stability:LAST:%le ${RRD_BIN}/rrdtool graph \ --imgformat PNG ${RRDPAGE}/ring-week-ntp-freq.png \ --alt-autoscale \ --vertical-label "ring" \ --title "`TZ=UTC date`" \ --start -691200 \ DEF:freq=${RRDPAGE}/ring.rrd:freq:AVERAGE \ LINE1:freq#0000FF:"frequency (ppm)" \ GPRINT:freq:LAST:%lf ${RRD_BIN}/rrdtool graph \ --imgformat PNG ${RRDPAGE}/ring-week-ntp-disp.png \ --alt-autoscale \ --vertical-label "ring" \ --title "`TZ=UTC date`" \ --start -691200 \ DEF:disp=${RRDPAGE}/ring.rrd:disp:AVERAGE \ CDEF:ndisp=disp,1000,/ \ LINE1:ndisp#0000FF:"dispersion" \ GPRINT:ndisp:LAST:%lf #end of ring # wraith ${RRD_BIN}/rrdtool graph --imgformat PNG ${RRDPAGE}/wraith-ntp-offset.png \ --vertical-label "wraith" \ --title "`TZ=UTC date`" \ --start -93600 \ DEF:offset=${RRDPAGE}/wraith.rrd:offset:AVERAGE \ CDEF:noffset=offset,1000,/ \ LINE1:noffset#0000FF:"offset" \ GPRINT:noffset:LAST:%le ${RRD_BIN}/rrdtool graph --imgformat PNG ${RRDPAGE}/wraith-ntp-jitter.png \ --vertical-label "wraith" \ --title "`TZ=UTC date`" \ --start -93600 \ DEF:jitter=${RRDPAGE}/wraith.rrd:jitter:AVERAGE \ CDEF:njitter=jitter,1000,/ \ LINE1:njitter#0000FF:"jitter" \ GPRINT:njitter:LAST:%le ${RRD_BIN}/rrdtool graph --imgformat PNG ${RRDPAGE}/wraith-ntp-noise.png \ --vertical-label "wraith" \ --title "`TZ=UTC date`" \ --start -93600 \ DEF:noise=${RRDPAGE}/wraith.rrd:noise:AVERAGE \ CDEF:nnoise=noise,1000,/ \ LINE1:nnoise#0000FF:"noise" \ GPRINT:nnoise:LAST:%le ${RRD_BIN}/rrdtool graph --imgformat PNG ${RRDPAGE}/wraith-ntp-stability.png \ --vertical-label "wraith" \ --title "`TZ=UTC date`" \ --start -93600 \ DEF:stability=${RRDPAGE}/wraith.rrd:stability:AVERAGE \ LINE1:stability#0000FF:"stability (ppm)" \ GPRINT:stability:LAST:%le ${RRD_BIN}/rrdtool graph \ --imgformat PNG ${RRDPAGE}/wraith-ntp-freq.png \ --alt-autoscale \ --vertical-label "wraith" \ --title "`TZ=UTC date`" \ --start -93600 \ DEF:freq=${RRDPAGE}/wraith.rrd:freq:AVERAGE \ LINE1:freq#0000FF:"frequency (ppm)" \ GPRINT:freq:LAST:%lf ${RRD_BIN}/rrdtool graph \ --imgformat PNG ${RRDPAGE}/wraith-ntp-disp.png \ --alt-autoscale \ --vertical-label "wraith" \ --title "`TZ=UTC date`" \ --start -93600 \ DEF:disp=${RRDPAGE}/wraith.rrd:disp:AVERAGE \ CDEF:ndisp=disp,1000,/ \ LINE1:ndisp#0000FF:"dispersion" \ GPRINT:ndisp:LAST:%lf # fat wraith ${RRD_BIN}/rrdtool graph --imgformat PNG ${RRDPAGE}/wraith-week-ntp-offset.png \ --vertical-label "wraith" \ --title "`TZ=UTC date`" \ --start -691200 \ DEF:offset=${RRDPAGE}/wraith.rrd:offset:AVERAGE \ CDEF:noffset=offset,1000,/ \ LINE1:noffset#0000FF:"offset" \ GPRINT:noffset:LAST:%le ${RRD_BIN}/rrdtool graph --imgformat PNG ${RRDPAGE}/wraith-week-ntp-jitter.png \ --vertical-label "wraith" \ --title "`TZ=UTC date`" \ --start -691200 \ DEF:jitter=${RRDPAGE}/wraith.rrd:jitter:AVERAGE \ CDEF:njitter=jitter,1000,/ \ LINE1:njitter#0000FF:"jitter" \ GPRINT:njitter:LAST:%le ${RRD_BIN}/rrdtool graph --imgformat PNG ${RRDPAGE}/wraith-week-ntp-noise.png \ --vertical-label "wraith" \ --title "`TZ=UTC date`" \ --start -691200 \ DEF:noise=${RRDPAGE}/wraith.rrd:noise:AVERAGE \ CDEF:nnoise=noise,1000,/ \ LINE1:nnoise#0000FF:"noise" \ GPRINT:nnoise:LAST:%le ${RRD_BIN}/rrdtool graph --imgformat PNG ${RRDPAGE}/wraith-week-ntp-stability.png \ --vertical-label "wraith" \ --title "`TZ=UTC date`" \ --start -691200 \ DEF:stability=${RRDPAGE}/wraith.rrd:stability:AVERAGE \ LINE1:stability#0000FF:"stability (ppm)" \ GPRINT:stability:LAST:%le ${RRD_BIN}/rrdtool graph \ --imgformat PNG ${RRDPAGE}/wraith-week-ntp-freq.png \ --alt-autoscale \ --vertical-label "wraith" \ --title "`TZ=UTC date`" \ --start -691200 \ DEF:freq=${RRDPAGE}/wraith.rrd:freq:AVERAGE \ LINE1:freq#0000FF:"frequency (ppm)" \ GPRINT:freq:LAST:%lf ${RRD_BIN}/rrdtool graph \ --imgformat PNG ${RRDPAGE}/wraith-week-ntp-disp.png \ --alt-autoscale \ --vertical-label "wraith" \ --title "`TZ=UTC date`" \ --start -691200 \ DEF:disp=${RRDPAGE}/wraith.rrd:disp:AVERAGE \ CDEF:ndisp=disp,1000,/ \ LINE1:ndisp#0000FF:"dispersion" \ GPRINT:ndisp:LAST:%lf #end of wraith #end