aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/build_graph.cgi
diff options
context:
space:
mode:
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>