aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMatt Rude <[email protected]>2011-06-11 19:16:05 -0500
committerMatt Rude <[email protected]>2011-06-11 19:16:05 -0500
commitd1466adeca91678cdbfc96553715466e4b01f761 (patch)
tree323d2e53c982766f9aa6326ccb763959aae664a0 /scripts
parent7edae077719556a081fabd9eb696fce8b210b2e0 (diff)
downloadtime.mattrude.com-d1466adeca91678cdbfc96553715466e4b01f761.tar.gz
time.mattrude.com-d1466adeca91678cdbfc96553715466e4b01f761.tar.bz2
time.mattrude.com-d1466adeca91678cdbfc96553715466e4b01f761.zip
Add All NTP Server Client Status.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/do-build-graphs37
1 files changed, 34 insertions, 3 deletions
diff --git a/scripts/do-build-graphs b/scripts/do-build-graphs
index e76ea8e..9129f30 100755
--- a/scripts/do-build-graphs
+++ b/scripts/do-build-graphs
@@ -74,10 +74,41 @@ GPRINT:a:LAST:"Now\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Avg\:%8.2lf %s" \
GPRINT:a:MAX:"Max\:%8.2lf %s\n" \
+${RRD_BIN}/rrdtool graph \
+ --imgformat=PNG ${GRAPHS}/all-clients.png \
+--start=-86400 --end=-300 \
+--title='Active Clients on All Servers' \
+--rigid \
+--height=72 \
+--width=290 \
+--alt-autoscale-max \
+--lower-limit=0 \
+--vertical-label='Active Clients' \
+--slope-mode \
+--font TITLE:12: \
+--font AXIS:8: \
+--font LEGEND:8: \
+--font UNIT:8: \
+DEF:a="/var/www/time.mattrude.com/rrd/kirby.mattrude.com-clients.rrd":clients:AVERAGE \
+DEF:b="/var/www/time.mattrude.com/rrd/twyla.mattrude.com-clients.rrd":clients:AVERAGE \
+DEF:c="/var/www/time.mattrude.com/rrd/samantha.mattrude.com-clients.rrd":clients:AVERAGE \
+LINE1:a#002A97FF:"Kirby:" \
+GPRINT:a:LAST:"Now\:%6.2lf %s" \
+GPRINT:a:AVERAGE:"Avg\:%6.2lf %s" \
+GPRINT:a:MAX:"Max\:%6.2lf %s\n" \
+LINE1:b#000000FF:"Twyla:" \
+GPRINT:b:LAST:"Now\:%6.2lf %s" \
+GPRINT:b:AVERAGE:"Avg\:%6.2lf %s" \
+GPRINT:b:MAX:"Max\:%6.2lf %s\n" \
+LINE1:c#990000FF:"Saman:" \
+GPRINT:c:LAST:"Now\:%6.2lf %s" \
+GPRINT:c:AVERAGE:"Avg\:%6.2lf %s" \
+GPRINT:c:MAX:"Max\:%6.2lf %s\n" \
-/usr/bin/optipng ${GRAPHS}/kirby-clients.png
-/usr/bin/optipng ${GRAPHS}/twyla-clients.png
-/usr/bin/optipng ${GRAPHS}/samantha-clients.png
+#/usr/bin/optipng ${GRAPHS}/kirby-clients.png
+#/usr/bin/optipng ${GRAPHS}/twyla-clients.png
+#/usr/bin/optipng ${GRAPHS}/samantha-clients.png
+#/usr/bin/optipng ${GRAPHS}/all-clients.png
#end