Maximum value incorrect on additive graphs
Moderators: Developers, Moderators
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:
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?
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 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.
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 (30.93 KiB) Viewed 2488 times
Who is online
Users browsing this forum: No registered users and 0 guests