From d1466adeca91678cdbfc96553715466e4b01f761 Mon Sep 17 00:00:00 2001 From: Matt Rude Date: Sat, 11 Jun 2011 19:16:05 -0500 Subject: Add All NTP Server Client Status. --- index.html | 1 + scripts/do-build-graphs | 37 ++++++++++++++++++++++++++++++++++--- 2 files changed, 35 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 6457492..9643ae6 100644 --- a/index.html +++ b/index.html @@ -25,6 +25,7 @@ kirby status twyla status samantha status + All Servers Status

You may also view the current status of Kirby, Twyla & Samantha's client files, or the pool's running status.

Acceptable use policy

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 -- cgit v1.2.3-59-ga6da