Graphing Max value

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
otisbrown
Posts: 39
Joined: Wed May 02, 2007 9:11 am

Graphing Max value

Post by otisbrown »

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
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Sure. Please select the Consolidation Function "MAXIMUM" when defining the Graph Item.
Reinhard
otisbrown
Posts: 39
Joined: Wed May 02, 2007 9:11 am

Post by otisbrown »

Thanks Gandalf,

That is what I did, but the Line is not drawing the Maximum. It is actually drawing the current. However, my gprint is specifying the Maximum.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please post debug screenshot from Graph Management, then
Reinhard
otisbrown
Posts: 39
Joined: Wed May 02, 2007 9:11 am

Post by otisbrown »

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\:" \
GPRINT:b:LAST:" Current\:%8.0lf" \
GPRINT:a:AVERAGE:"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
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

The AREA refers to AVERAGE, the LINE1 to MAX, fine.
Diffrences will be shown only when leavin the first consolidation level (usually seen on the weekly graph, NOT on the daily one)
Reinhard
otisbrown
Posts: 39
Joined: Wed May 02, 2007 9:11 am

Post by otisbrown »

Thanks Gandalf,

I have always had the graph set up that way(with the line using max), but no matter what time frame I look at the line never shows the maximum value, while the Gprint does. Any ideas?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please post a screenshot of a graph spanning, let's say, a month
Reinhard
otisbrown
Posts: 39
Joined: Wed May 02, 2007 9:11 am

Post by otisbrown »

Please see the attached
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

???
otisbrown
Posts: 39
Joined: Wed May 02, 2007 9:11 am

Post by otisbrown »

Doh!
Attachments
month-graph.doc
(146 KiB) Downloaded 107 times
gdurrett
Posts: 3
Joined: Thu Jul 10, 2008 3:21 pm

Post by gdurrett »

I'm having the exact same issue with one of my traffic graphs. Was this ever resolved?

Regards,

Greg
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Sorry, please post image INLINE
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest