aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/do-build-graphs
diff options
context:
space:
mode:
authorMatt Rude <[email protected]>2011-05-30 01:36:21 -0500
committerMatt Rude <[email protected]>2011-05-30 01:36:21 -0500
commitea54cdb7628d7e5e2488eeb4d0a57c0d07319e48 (patch)
tree055df6e7463d68b30612fe770f147ef8cea7ce39 /scripts/do-build-graphs
parentd7bf5e77dd46c154f8f08442f63a24c53a80c057 (diff)
downloadtime.mattrude.com-ea54cdb7628d7e5e2488eeb4d0a57c0d07319e48.tar.gz
time.mattrude.com-ea54cdb7628d7e5e2488eeb4d0a57c0d07319e48.tar.bz2
time.mattrude.com-ea54cdb7628d7e5e2488eeb4d0a57c0d07319e48.zip
adding build graphs
Diffstat (limited to 'scripts/do-build-graphs')
-rwxr-xr-xscripts/do-build-graphs54
1 files changed, 54 insertions, 0 deletions
diff --git a/scripts/do-build-graphs b/scripts/do-build-graphs
new file mode 100755
index 0000000..45dab5d
--- /dev/null
+++ b/scripts/do-build-graphs
@@ -0,0 +1,54 @@
+#!/bin/sh
+
+RRD_BIN=/usr/bin
+RRDPAGE=/var/www/time.mattrude.com/rrd
+GRAPHS=/var/www/time.mattrude.com/graphs
+SCRIPTS=/var/www/time.mattrude.com/scripts
+
+cd ${RRDPAGE}
+
+${RRD_BIN}/rrdtool graph \
+ --imgformat=PNG ${GRAPHS}/kirby-clients.png \
+--start=-86400 --end=-300 \
+--title='Kirby - 174.143.169.159 - Clients' \
+--rigid \
+--height=150 \
+--width=400 \
+--alt-autoscale-max \
+--lower-limit=0 \
+--vertical-label='Active Clients' \
+--slope-mode \
+--font TITLE:12: \
+--font AXIS:8: \
+--font LEGEND:10: \
+--font UNIT:8: \
+DEF:a="/var/www/time.mattrude.com/rrd/kriby-client.rrd":clients:AVERAGE \
+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" \
+
+${RRD_BIN}/rrdtool graph \
+ --imgformat=PNG ${GRAPHS}/twyla-clients.png \
+--start=-86400 --end=-300 \
+--title='Twyla - 174.143.174.61 - Clients' \
+--rigid \
+--height=150 \
+--width=400 \
+--alt-autoscale-max \
+--lower-limit=0 \
+--vertical-label='Active Clients' \
+--slope-mode \
+--font TITLE:12: \
+--font AXIS:8: \
+--font LEGEND:10: \
+--font UNIT:8: \
+DEF:a="/var/www/time.mattrude.com/rrd/twyla-client.rrd":clients:AVERAGE \
+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" \
+
+#end
+
+