diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/do-build-graphs | 21 |
1 files changed, 12 insertions, 9 deletions
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 |