aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMatt Rude <[email protected]>2011-05-30 02:01:02 -0500
committerMatt Rude <[email protected]>2011-05-30 02:01:02 -0500
commitc43aad852ba8d0560790cace5124a62ae0352e61 (patch)
tree74b46df813f6809d6c8b79f07ea0d6421efb8370 /scripts
parentea54cdb7628d7e5e2488eeb4d0a57c0d07319e48 (diff)
downloadtime.mattrude.com-c43aad852ba8d0560790cace5124a62ae0352e61.tar.gz
time.mattrude.com-c43aad852ba8d0560790cace5124a62ae0352e61.tar.bz2
time.mattrude.com-c43aad852ba8d0560790cace5124a62ae0352e61.zip
update graphs to be local
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/do-build-graphs21
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