I have a really weird problem. I have created an aggregate graph from simple 2 line graphs. When the aggregate graph is created under the aggregate graphs section(under management) everything is cool and working accordingly.
However, when I add the aggregated graph under a graph tree, the whole RRD for the aggregated graph changes and the graph cannot show the total value.
Here is the graph rrd before adding to a tree:
Code: Select all
/bin/rrdtool graph - \
--imgformat=PNG \
--start='-86400' \
--end='-300' \
--title='Total Online Users' \
--base='1000' \
--height='150' \
--width='650' \
--alt-autoscale-max \
--lower-limit='0' \
--units-exponent='0' \
--vertical-label='Online Users' \
--slope-mode \
--font TITLE:10: \
--font AXIS:7: \
--font LEGEND:8: \
--font UNIT:7: \
DEF:a='/usr/share/cacti/rra/xxxxxxxxxxxxxxxx.rrd':'dsl_user_input':AVERAGE \
DEF:b='/usr/share/cacti/rra/yyyyyyyyyyyyyyyy.rrd':'time':AVERAGE \
CDEF:cdefa='a,0,*' \
CDEF:cdefb='b,0,*' \
CDEF:cdefc='TIME,1533625072,GT,a,a,UN,0,a,IF,IF,TIME,1533625072,GT,b,b,UN,0,b,IF,IF,+' \
LINE2:cdefa#0000FFFF:'' \
LINE2:cdefb#0000FFFF:'' \
GPRINT:cdefc:LAST:'Total Users\:%8.0lf' \
LINE2:cdefc#0000FFFF:'' \
GPRINT:cdefc:MIN:'Min Users\: %8.0lf' \
GPRINT:cdefc:MAX:'Max Users\: %8.0lf\n'
Code: Select all
/bin/rrdtool graph - \
--imgformat=PNG \
--start='-86400' \
--end='-300' \
--title='Total Online Users' \
--base='1000' \
--height='150' \
--width='650' \
--alt-autoscale-max \
--lower-limit='0' \
--units-exponent='0' \
--vertical-label='Online Users' \
--slope-mode \
--font TITLE:10: \
--font AXIS:7: \
--font LEGEND:8: \
--font UNIT:7: \
DEF:a='/usr/share/cacti/rra/xxxxxxxxxxxxxxxx.rrd':'dsl_user_input':AVERAGE \
DEF:b='/usr/share/cacti/rra/yyyyyyyyyyyyyyyy.rrd':'time':AVERAGE \
CDEF:cdefa='a,0,*' \
CDEF:cdefb='b,0,*' \
LINE2:cdefa#0000FFFF:'' \
LINE2:cdefb#0000FFFF:''
I can't understand why!
Any help appreciated!
Thanks!!!