aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/build_graph.cgi
diff options
context:
space:
mode:
authorMatt Rude <[email protected]>2011-06-05 20:29:10 -0500
committerMatt Rude <[email protected]>2011-06-05 20:29:10 -0500
commitce10b3ecd979c01d39e6931cfa4602abba4c9c76 (patch)
tree119a8d594353b8c5c5df1c8e97620777d12d9466 /scripts/build_graph.cgi
parentc0592665e13f4c024b68e44a050f95d9343393d9 (diff)
downloadtime.mattrude.com-ce10b3ecd979c01d39e6931cfa4602abba4c9c76.tar.gz
time.mattrude.com-ce10b3ecd979c01d39e6931cfa4602abba4c9c76.tar.bz2
time.mattrude.com-ce10b3ecd979c01d39e6931cfa4602abba4c9c76.zip
adding Samantha
Diffstat (limited to 'scripts/build_graph.cgi')
-rwxr-xr-xscripts/build_graph.cgi30
1 files changed, 30 insertions, 0 deletions
diff --git a/scripts/build_graph.cgi b/scripts/build_graph.cgi
index 726f083..69ed8cc 100755
--- a/scripts/build_graph.cgi
+++ b/scripts/build_graph.cgi
@@ -64,5 +64,35 @@ GPRINT:b:AVERAGE:"Average\:%8.2lf %s"
GPRINT:b:MAX:"Maximum\:%8.2lf %s\n">
</P>
+<P>
+<RRD::GRAPH samantha-clients.png
+--lazy
+--imgformat=PNG
+--start=-86400
+--end=-300
+--title='Samantha - 174.143.173.49 - Number of Active Clients'
+--rigid
+--height=120
+--width=500
+--alt-autoscale-max
+--lower-limit=0
+--vertical-label='Number of Clients'
+--slope-mode
+--font TITLE:12:
+--font AXIS:8:
+--font LEGEND:10:
+--font UNIT:8:
+DEF:a="/var/www/time.mattrude.com/rrd/samantha-client.rrd":clients:AVERAGE
+DEF:b="/var/www/time.mattrude.com/rrd/samantha-client.rrd":abusive:AVERAGE
+LINE:a#002A97FF:"Clients:"
+GPRINT:a:LAST:"Current\:%8.2lf %s"
+GPRINT:a:AVERAGE:"Average\:%8.2lf %s"
+GPRINT:a:MAX:"Maximum\:%8.2lf %s\n"
+AREA:b#F51D30FF:"Abusive:"
+GPRINT:b:LAST:" Current\:%8.2lf %s"
+GPRINT:b:AVERAGE:"Average\:%8.2lf %s"
+GPRINT:b:MAX:"Maximum\:%8.2lf %s\n">
+</P>
+
</BODY>
</HTML>