Maximum value incorrect on additive graphs

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

Moderators: Developers, Moderators

ashke
Posts: 32
Joined: Wed Feb 06, 2008 10:52 am

Post by ashke »

Re bump.
User avatar
bleearg
Cacti User
Posts: 55
Joined: Wed Apr 27, 2005 9:37 am

Post by bleearg »

I found this post while investigating a similar issue with graphs that have multiple sources, all totaled up. Looking at my graph debug output, I see that some cdefs are referencing the MIN function, but I don't have MIN defined in any of the graphs:

Code: Select all

DEF:c="/opt/web/virtual/cacti/rra/edge01_traffic_in_2204.rrd":traffic_in:AVERAGE \
DEF:d="/opt/web/virtual/cacti/rra/edge01_traffic_in_2204.rrd":traffic_in:LAST \
DEF:e="/opt/web/virtual/cacti/rra/edge01_traffic_in_2204.rrd":traffic_in:MIN \
DEF:f="/opt/web/virtual/cacti/rra/edge01_traffic_in_2204.rrd":traffic_in:MAX \
I've got AVERAGE for my first AREA and subsequent STACKS, then CURRENT, AVERAGE, and MAX defined for my GPRINTs. Is it possible that these two problems are related?
ashke
Posts: 32
Joined: Wed Feb 06, 2008 10:52 am

Post by ashke »

Still looking for help on this.
Syngress
Posts: 26
Joined: Tue Apr 24, 2007 9:17 am

Post by Syngress »

I am also seeing this issue on graph's that have Data Sources from multiple devices.

As you can see in the image the 'current' and 'average' totals are correct but the 'Maximum' totals are not :(

As a poster mentioned above I also get the MIN Def's in there but these are not being used anywhere.

Code: Select all

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Total Linx Traffic In" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="" \
--slope-mode \
--font TITLE:9:/usr/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf \
--font AXIS:7:/usr/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf \
--font LEGEND:7:/usr/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf \
--font UNIT:7:/usr/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf \
DEF:a="/var/www/cacti/rra/pe-1_ltn1_traffic_in_3407.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/cacti/rra/pe-1_ltn1_traffic_in_3407.rrd":traffic_in:LAST \
DEF:c="/var/www/cacti/rra/pe-1_ltn1_traffic_in_3407.rrd":traffic_in:MIN \
DEF:d="/var/www/cacti/rra/pe-1_ltn1_traffic_in_3407.rrd":traffic_in:MAX \
DEF:e="/var/www/cacti/rra/pe-1_lhc1_test_traffic_in_3419.rrd":traffic_in:AVERAGE \
DEF:f="/var/www/cacti/rra/pe-1_lhc1_test_traffic_in_3419.rrd":traffic_in:LAST \
DEF:g="/var/www/cacti/rra/pe-1_lhc1_test_traffic_in_3419.rrd":traffic_in:MIN \
DEF:h="/var/www/cacti/rra/pe-1_lhc1_test_traffic_in_3419.rrd":traffic_in:MAX \
CDEF:cdefa=a,8,* \
CDEF:cdefb=b,8,* \
CDEF:cdefd=d,8,* \
CDEF:cdefe=e,8,* \
CDEF:cdeff=f,8,* \
CDEF:cdefh=h,8,* \
CDEF:cdefi=TIME,1216903524,GT,a,a,UN,0,a,IF,IF,TIME,1216903524,GT,e,e,UN,0,e,IF,IF,+,8,* \
CDEF:cdefj=TIME,1216903524,GT,b,b,UN,0,b,IF,IF,TIME,1216903524,GT,f,f,UN,0,f,IF,IF,+,8,* \
CDEF:cdefbb=TIME,1216903524,GT,a,a,UN,0,a,IF,IF,TIME,1216903524,GT,e,e,UN,0,e,IF,IF,+,8,* \
AREA:cdefa#F5F800FF:"pe-1.LTN1 (ae3)"  \
GPRINT:cdefb:LAST:"Current\:%8.2lf%s"  \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:cdefd:MAX:"Maximum\:%8.2lf%s\n"  \
AREA:cdefe#ED7600FF:"pe-1.LHC1 (ae2)":STACK \
GPRINT:cdeff:LAST:"Current\:%8.2lf%s"  \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:cdefh:MAX:"Maximum\:%8.2lf%s\n"  \
LINE3:cdefi#862F2FFF:"Total"  \
GPRINT:cdefj:LAST:"          Current\:%8.2lf%s"  \
GPRINT:cdefi:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:cdefbb:MAX:"Maximum\:%8.2lf%s" 

RRDTool Says:

OK
Attachments
graph_image.png
graph_image.png (30.93 KiB) Viewed 2487 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Unfortunalety, this is a known bug, assigned to me. To avoid breaking existing graphs, the workaround is quite tricky and may still require some thinking
Reinhard
manaf
Cacti User
Posts: 68
Joined: Sun Apr 16, 2006 2:03 am

Post by manaf »

has anybody solve this bug!
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Yes, me. Will be part of 087c.
Reinhard
manaf
Cacti User
Posts: 68
Joined: Sun Apr 16, 2006 2:03 am

Post by manaf »

gandalf wrote:Yes, me. Will be part of 087c.
Reinhard
gandalf,, when the 087c will be released??
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

There's a BETA1 out there. But the bug fix was posted afterwards. To verify, please check out latest SVN; for testing purpose only
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests