diff options
-rw-r--r-- | index.html | 4 | ||||
-rwxr-xr-x | scripts/do-build-graphs | 21 |
2 files changed, 14 insertions, 11 deletions
@@ -21,8 +21,8 @@ <h2>Server Status</h2> <p>Both of these servers are running as <a href='http://en.wikipedia.org/wiki/Network_Time_Protocol#Clock_strata'>stratum 2</a> time servers, with a maximum offset of 10ms.</p> <div class="center" id='offset_graphs'> - <a href='http://www.pool.ntp.org/scores/174.143.169.159'><img src='http://www.pool.ntp.org/scores/174.143.169.159/graph/offset.png' alt='kirby status' height='162px' width='390px' /></a> - <a href='http://www.pool.ntp.org/scores/174.143.174.61'><img src='http://www.pool.ntp.org/scores/174.143.174.61/graph/offset.png' alt='twyla status' height='162px' width='390px' /></a> + <img src='/graphs/kirby-clients.png' alt='kirby status' height='184px' width='393px' /> + <img src='/graphs/twyla-clients.png' alt='twyla status' height='184px' width='393px' /> </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>'s client files, or the pool's <a href='http://time.mattrude.com/logs/pool_status.txt'>running status</a>.<br /></p> <h2>Acceptable use policy</h2> diff --git a/scripts/do-build-graphs b/scripts/do-build-graphs index 45dab5d..1b3b5de 100755 --- a/scripts/do-build-graphs +++ b/scripts/do-build-graphs @@ -10,17 +10,17 @@ cd ${RRDPAGE} ${RRD_BIN}/rrdtool graph \ --imgformat=PNG ${GRAPHS}/kirby-clients.png \ --start=-86400 --end=-300 \ ---title='Kirby - 174.143.169.159 - Clients' \ +--title='Kirby - 174.143.169.159' \ --rigid \ ---height=150 \ ---width=400 \ +--height=100 \ +--width=290 \ --alt-autoscale-max \ --lower-limit=0 \ --vertical-label='Active Clients' \ --slope-mode \ --font TITLE:12: \ --font AXIS:8: \ ---font LEGEND:10: \ +--font LEGEND:8: \ --font UNIT:8: \ DEF:a="/var/www/time.mattrude.com/rrd/kriby-client.rrd":clients:AVERAGE \ AREA:a#002A97FF:"" \ @@ -31,24 +31,27 @@ GPRINT:a:MAX:"Max\:%8.2lf %s\n" \ ${RRD_BIN}/rrdtool graph \ --imgformat=PNG ${GRAPHS}/twyla-clients.png \ --start=-86400 --end=-300 \ ---title='Twyla - 174.143.174.61 - Clients' \ +--title='Twyla - 174.143.174.61' \ --rigid \ ---height=150 \ ---width=400 \ +--height=100 \ +--width=290 \ --alt-autoscale-max \ --lower-limit=0 \ --vertical-label='Active Clients' \ --slope-mode \ --font TITLE:12: \ --font AXIS:8: \ ---font LEGEND:10: \ +--font LEGEND:8: \ --font UNIT:8: \ DEF:a="/var/www/time.mattrude.com/rrd/twyla-client.rrd":clients:AVERAGE \ -AREA:a#002A97FF:"#:" \ +AREA:a#002A97FF:"" \ GPRINT:a:LAST:"Now\:%8.2lf %s" \ GPRINT:a:AVERAGE:"Avg\:%8.2lf %s" \ GPRINT:a:MAX:"Max\:%8.2lf %s\n" \ +/usr/bin/optipng ${GRAPHS}/kirby-clients.png +/usr/bin/optipng ${GRAPHS}/twyla-clients.png + #end |