Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Maximum value incorrect on additive graphs
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cacti Forum Index -> Help: General
Author Message
ashke



Joined: 06 Feb 2008
Posts: 32

PostPosted: Thu Apr 24, 2008 1:25 pm    Post subject: Reply with quote

Re bump.
Back to top
bleearg



Joined: 27 Apr 2005
Posts: 45

PostPosted: Mon May 12, 2008 2:30 pm    Post subject: Reply with quote

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:
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?
Back to top
ashke



Joined: 06 Feb 2008
Posts: 32

PostPosted: Tue Jun 17, 2008 5:01 pm    Post subject: Reply with quote

Still looking for help on this.
Back to top
Syngress



Joined: 24 Apr 2007
Posts: 13

PostPosted: Thu Jul 24, 2008 8:07 am    Post subject: Reply with quote

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:

/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



graph_image.png
 Description:
 Filesize:  30.93 KB
 Viewed:  351 Time(s)

graph_image.png


Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12642
Location: Muenster, Germany

PostPosted: Mon Aug 11, 2008 12:25 pm    Post subject: Reply with quote

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
Back to top
manaf
Cacti User


Joined: 16 Apr 2006
Posts: 50

PostPosted: Fri Nov 14, 2008 7:27 am    Post subject: Reply with quote

has anybody solve this bug!
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12642
Location: Muenster, Germany

PostPosted: Fri Nov 14, 2008 1:13 pm    Post subject: Reply with quote

Yes, me. Will be part of 087c.
Reinhard
Back to top
manaf
Cacti User


Joined: 16 Apr 2006
Posts: 50

PostPosted: Fri Nov 14, 2008 5:37 pm    Post subject: Reply with quote

gandalf wrote:
Yes, me. Will be part of 087c.
Reinhard


gandalf,, when the 087c will be released??
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12642
Location: Muenster, Germany

PostPosted: Sun Nov 16, 2008 1:37 pm    Post subject: Reply with quote

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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Help: General All times are GMT - 5 Hours
Goto page Previous  1, 2
Page 2 of 2

 



Powered by phpBB © 2001, 2005 phpBB Group