Cacti Aggregate Graph Problem When Added Under a Tree

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

Moderators: Developers, Moderators

Post Reply
takobaba
Posts: 7
Joined: Mon Aug 05, 2013 10:22 am

Cacti Aggregate Graph Problem When Added Under a Tree

Post by takobaba »

Hi Guys,

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' 
Here is the graph rrd after 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,*' \
LINE2:cdefa#0000FFFF:''  \
LINE2:cdefb#0000FFFF:'' 
Basically the cdef function loses the total value(cdefc) and the graph ends up showing nothing.

I can't understand why!
Any help appreciated!
Thanks!!!
User avatar
camerabob
Cacti User
Posts: 386
Joined: Fri Feb 10, 2017 2:45 pm
Location: Long Island, New York, USA
Contact:

Re: Cacti Aggregate Graph Problem When Added Under a Tree

Post by camerabob »

I'm not a CDEF pro, but doesn't CDEFA and CDEFB take the initial value and multiply by 0? (a, 0, *)
Prod: Cacti 1.2.15 @ CentOS Linux release 7.9.2009 (Core) & PHP 5.4.16-48.el7
Maint @ 1.2
Monitor @ 2.3.6
Thold @ 1.2.4

Temp: Cacti 1.2.3 @ CentOS Linux release 7.9.2009 (Core) & PHP 5.4.16-48.el7
Flowview @ 2.1
Mactrack @ 4.2
Maint @ 1.2
Monitor @ 2.3.6
Router Configs @ 1.3.4
Syslog Monitoring @ 2.1
Thold @ 1.2.4
takobaba
Posts: 7
Joined: Mon Aug 05, 2013 10:22 am

Re: Cacti Aggregate Graph Problem When Added Under a Tree

Post by takobaba »

camerabob wrote:I'm not a CDEF pro, but doesn't CDEFA and CDEFB take the initial value and multiply by 0? (a, 0, *)

yeah, thats not the problem.

there is only one line needed to be graphed and thats the CDEFC.

Why is CDEFC disappearing after being added to a tree, this is the problem/question!
netniV
Cacti Guru User
Posts: 3442
Joined: Sun Aug 27, 2017 12:05 am

Re: Cacti Aggregate Graph Problem When Added Under a Tree

Post by netniV »

That sounds like a bug, can you post about it on the GitHub issues page so we can properly track it?
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
takobaba
Posts: 7
Joined: Mon Aug 05, 2013 10:22 am

Re: Cacti Aggregate Graph Problem When Added Under a Tree

Post by takobaba »

netniV wrote:That sounds like a bug, can you post about it on the GitHub issues page so we can properly track it?
Done!
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests