diff options
-rw-r--r-- | index.html | 1 | ||||
-rwxr-xr-x | scripts/do-build-graphs | 37 |
2 files changed, 35 insertions, 3 deletions
@@ -25,6 +25,7 @@ <a href="/status/kirby.mattrude.com/"><img src='/graphs/kirby-clients.png' alt='kirby status' height='184px' width='393px' /></a> <a href="/status/twyla.mattrude.com/"><img src='/graphs/twyla-clients.png' alt='twyla status' height='184px' width='393px' /></a> <a href="/status/samantha.mattrude.com/"><img src='/graphs/samantha-clients.png' alt='samantha status' height='184px' width='393px' /></a> + <a href="/status/"><img src='/graphs/all-clients.png' alt='All Servers Status' height='184px' width='393px' /></a> </div> <p>You may also view the current status of <a href='http://time.mattrude.com/logs/ntp-stats-kirby.log'>Kirby</a>, <a href='http://time.mattrude.com/logs/ntp-stats-twyla.log'>Twyla</a> & <a href='http://time.mattrude.com/logs/ntp-stats-samantha.log'>Samantha</a>'s client files, or the pool's <a href='http://time.mattrude.com/status/'>running status</a>.<br /></p> <h2>Acceptable use policy</h2> 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 |