Graphing Max value
Moderators: Developers, Moderators
Graphing Max value
I created a graph for a netscreen fw that graphs the current sessions. I am able to graph the average, but I also want to draw a line on the graph that represents the maximum. The gprint displays the correct value, but when I create the line it represents the current number of sessions. Can Cacti draw graphs based on the maximum value?
TIA
TIA
Here you go.
RRDTool Command:
/usr/local/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="PHL1proFW1 - Sessions " \
--rigid \
--base=1000 \
--height=120 \
--width=600 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="sessions" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/var/www/cacti/rra/phl1profw1_sessions_used_2399.rrd":sessions_used:AVERAGE \
DEF:b="/var/www/cacti/rra/phl1profw1_sessions_used_2399.rrd":sessions_used:LAST \
DEF:c="/var/www/cacti/rra/phl1profw1_sessions_used_2399.rrd":sessions_used:MAX \
AREA:a#0D006AFF:"Sessions\:" \
GPRINTLAST:" Current\:%8.0lf" \
GPRINTAVERAGE:"Average\:%8.0lf\n" \
LINE1:c#F5F800FF:"Session Maximum\:" \
GPRINT:c:MAX:"%8.0lf\n" \
COMMENT:"Updated\:Mon 14 Apr 16\:05\:14 EDT 2008"
RRDTool Says:
OK
RRDTool Command:
/usr/local/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="PHL1proFW1 - Sessions " \
--rigid \
--base=1000 \
--height=120 \
--width=600 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="sessions" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/var/www/cacti/rra/phl1profw1_sessions_used_2399.rrd":sessions_used:AVERAGE \
DEF:b="/var/www/cacti/rra/phl1profw1_sessions_used_2399.rrd":sessions_used:LAST \
DEF:c="/var/www/cacti/rra/phl1profw1_sessions_used_2399.rrd":sessions_used:MAX \
AREA:a#0D006AFF:"Sessions\:" \
GPRINTLAST:" Current\:%8.0lf" \
GPRINTAVERAGE:"Average\:%8.0lf\n" \
LINE1:c#F5F800FF:"Session Maximum\:" \
GPRINT:c:MAX:"%8.0lf\n" \
COMMENT:"Updated\:Mon 14 Apr 16\:05\:14 EDT 2008"
RRDTool Says:
OK
- Attachments
-
- max.doc
- (201.5 KiB) Downloaded 99 times
Who is online
Users browsing this forum: No registered users and 1 guest