aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/do-xntp
diff options
context:
space:
mode:
authorMatt Rude <[email protected]>2011-06-21 21:38:48 -0500
committerMatt Rude <[email protected]>2011-06-21 21:38:48 -0500
commitc3d0bd3f76212ff366540b97d3f43b3c37ff221e (patch)
tree37954b59d9aa739ba3da1f0dfb64f888bb74334e /scripts/do-xntp
parent022e1a4cd8510690daaa830faf47675f90b1a104 (diff)
downloadtime.mattrude.com-c3d0bd3f76212ff366540b97d3f43b3c37ff221e.tar.gz
time.mattrude.com-c3d0bd3f76212ff366540b97d3f43b3c37ff221e.tar.bz2
time.mattrude.com-c3d0bd3f76212ff366540b97d3f43b3c37ff221e.zip
playing
Diffstat (limited to 'scripts/do-xntp')
-rwxr-xr-xscripts/do-xntp19
1 files changed, 17 insertions, 2 deletions
diff --git a/scripts/do-xntp b/scripts/do-xntp
index 1ab472a..247a76c 100755
--- a/scripts/do-xntp
+++ b/scripts/do-xntp
@@ -21,7 +21,7 @@ do
if [ ! $? ]; then exit 1; fi
${RRD_BIN}/rrdtool graph --imgformat=PNG ${STATUS}/${X}/daily-ntp-clients-small.png \
- --width=296 --height=111 --start=-86400 --end=-300 \
+ --width=296 --height=111 --start=-86400 --end=-300 --lower-limit=0 -r \
--title="${X}" \
--vertical-label='Active Clients' \
DEF:a="${RRDPAGE}/${X}-clients.rrd":clients:LAST \
@@ -39,10 +39,12 @@ do
AREA:a#002A97FF:"Clients:" \
GPRINT:a:LAST:"Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
+ GPRINT:a:MIN:"Minimum\:%8.2lf %s" \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" \
AREA:b#F51D30FF:"Abusive:" \
GPRINT:b:LAST:" Current\:%8.2lf %s" \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s" \
+ GPRINT:b:MIN:"Minimum\:%8.2lf %s" \
GPRINT:b:MAX:"Maximum\:%8.2lf %s\n" > /dev/null
${RRD_BIN}/rrdtool graph --imgformat PNG ${STATUS}/${X}/weekly-ntp-clients.png \
@@ -54,10 +56,12 @@ do
AREA:a#002A97FF:"Clients:" \
GPRINT:a:LAST:"Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
+ GPRINT:a:MIN:"Minimum\:%8.2lf %s" \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" \
AREA:b#F51D30FF:"Abusive:" \
GPRINT:b:LAST:" Current\:%8.2lf %s" \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s" \
+ GPRINT:b:MIN:"Minimum\:%8.2lf %s" \
GPRINT:b:MAX:"Maximum\:%8.2lf %s\n" > /dev/null
${RRD_BIN}/rrdtool graph --imgformat PNG ${STATUS}/${X}/monthly-ntp-clients.png \
@@ -69,10 +73,12 @@ do
AREA:a#002A97FF:"Clients:" \
GPRINT:a:LAST:"Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
+ GPRINT:a:MIN:"Minimum\:%8.2lf %s" \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" \
AREA:b#F51D30FF:"Abusive:" \
GPRINT:b:LAST:" Current\:%8.2lf %s" \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s" \
+ GPRINT:b:MIN:"Minimum\:%8.2lf %s" \
GPRINT:b:MAX:"Maximum\:%8.2lf %s\n" > /dev/null
${RRD_BIN}/rrdtool graph --imgformat PNG ${STATUS}/${X}/yearly-ntp-clients.png \
@@ -84,10 +90,12 @@ do
AREA:a#002A97FF:"Clients:" \
GPRINT:a:LAST:"Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
+ GPRINT:a:MIN:"Minimum\:%8.2lf %s" \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" \
AREA:b#F51D30FF:"Abusive:" \
GPRINT:b:LAST:" Current\:%8.2lf %s" \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s" \
+ GPRINT:b:MIN:"Minimum\:%8.2lf %s" \
GPRINT:b:MAX:"Maximum\:%8.2lf %s\n" > /dev/null
for a in offset sjit cjit wander freq disp jitter
@@ -100,6 +108,7 @@ do
AREA:a#002A97FF:"${a}:" \
GPRINT:a:LAST:" Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
+ GPRINT:a:MIN:"Minimum\:%8.2lf %s" \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" > /dev/null
${RRD_BIN}/rrdtool graph --imgformat PNG ${STATUS}/${X}/weekly-ntp-${a}.png \
@@ -111,6 +120,7 @@ do
AREA:n${a}#002A97FF:"${a}:" \
GPRINT:n${a}:LAST:"Current\:%le" \
GPRINT:n${a}:AVERAGE:"Average\:%8.2lf %s" \
+ GPRINT:n${a}:MIN:"Minimum\:%8.2lf %s" \
GPRINT:n${a}:MAX:"Maximum\:%8.2lf %s\n" > /dev/null
${RRD_BIN}/rrdtool graph --imgformat PNG ${STATUS}/${X}/monthly-ntp-${a}.png \
@@ -122,6 +132,7 @@ do
AREA:n${a}#002A97FF:"${a}:" \
GPRINT:n${a}:LAST:"Current\:%le" \
GPRINT:n${a}:AVERAGE:"Average\:%8.2lf %s" \
+ GPRINT:n${a}:MIN:"Minimum\:%8.2lf %s" \
GPRINT:n${a}:MAX:"Maximum\:%8.2lf %s\n" > /dev/null
${RRD_BIN}/rrdtool graph --imgformat PNG ${STATUS}/${X}/yearly-ntp-${a}.png \
@@ -133,13 +144,14 @@ do
AREA:n${a}#002A97FF:"${a}:" \
GPRINT:n${a}:LAST:"Current\:%le" \
GPRINT:n${a}:AVERAGE:"Average\:%8.2lf %s" \
+ GPRINT:n${a}:MIN:"Minimum\:%8.2lf %s" \
GPRINT:n${a}:MAX:"Maximum\:%8.2lf %s\n" > /dev/null
done
done
${RRD_BIN}/rrdtool graph --imgformat=PNG ${STATUS}/all-clients.png \
- --width=296 --height=83 --start=-86400 --end=-300 \
+ --width=296 --height=83 --start=-86400 --end=-300 --lower-limit=0 -r \
--title='Active Clients on All Servers' \
--vertical-label='Active Clients' \
DEF:a="/var/www/time.mattrude.com/rrd/kirby.mattrude.com-clients.rrd":clients:AVERAGE \
@@ -161,3 +173,6 @@ ${RRD_BIN}/rrdtool graph --imgformat=PNG ${STATUS}/all-clients.png \
rm -f /var/www/time.mattrude.com/logs/ntp-stats-samantha.log /var/www/time.mattrude.com/logs/ntp-stats-twyla.log
ssh samantha /home/matt/bin/ntp/ntp_clients_stats > /var/www/time.mattrude.com/logs/ntp-stats-samantha.log
ssh twyla /home/matt/bin/ntp/ntp_clients_stats > /var/www/time.mattrude.com/logs/ntp-stats-twyla.log
+
+rsync -a ${STATUS} twyla:${STATUS}/
+rsync -a ${STATUS} samantha:${STATUS}/