I installed Cacti 0.8.8h and the Aggregate plugin v1.10. I made a new traffic template based on the default one which shows the bandwith, the 95th percentile and the sum of the transfer both for in and out. I would like to make a graph which aggregates several hosts and also adds the total transfer (in/out) but I am getting zero as the sum value. Could you please tell me what am I doing wrong?
These are my templates:
Graph template:
Aggregate template:
And these are some of my graphs:
Just one device:
Code: Select all
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start='1592190009' \
--end='1592211609' \
--title='Espigete - Traffic - eth0' \
--rigid \
--base='1000' \
--height='120' \
--width='750' \
--alt-autoscale \
COMMENT:"From 2020/06/15 05\:00\:09 To 2020/06/15 11\:00\:09\c" \
COMMENT:" \n" \
--vertical-label='bits per second' \
--slope-mode \
--font TITLE:10: \
--font AXIS:7: \
--font LEGEND:8: \
--font UNIT:7: \
DEF:a='/var/lib/cacti/rra/32/167.rrd':'traffic_in':AVERAGE \
DEF:b='/var/lib/cacti/rra/32/167.rrd':'traffic_out':AVERAGE \
CDEF:cdefa='a,8,*' \
CDEF:cdeff='b,8,*,-1,*' \
CDEF:cdefg='b,8,*' \
AREA:cdefa#00CF00FF:'Inbound' \
GPRINT:cdefa:LAST:' Current\:%8.2lf %s' \
GPRINT:cdefa:AVERAGE:'Average\:%8.2lf %s' \
GPRINT:cdefa:MAX:'Maximum\:%8.2lf %s' \
COMMENT:'Total In\: 89.66 MB\n' \
AREA:cdeff#002A97FF:'Outbound' \
GPRINT:cdefg:LAST:'Current\:%8.2lf %s' \
GPRINT:cdefg:AVERAGE:'Average\:%8.2lf %s' \
GPRINT:cdefg:MAX:'Maximum\:%8.2lf %s' \
COMMENT:'Total Out\: 91.87 MB\n' \
HRULE:160505.15#FF0000FF:'95th Percentile' \
COMMENT:'(0.16 mbit in+out)\n'
Code: Select all
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start='1592190074' \
--end='1592211674' \
--title='Aggregate Internet Traffic' \
--rigid \
--base='1000' \
--height='120' \
--width='750' \
--alt-autoscale \
COMMENT:"From 2020/06/15 05\:01\:14 To 2020/06/15 11\:01\:14\c" \
COMMENT:" \n" \
--vertical-label='bits per second' \
--slope-mode \
--font TITLE:10: \
--font AXIS:7: \
--font LEGEND:8: \
--font UNIT:7: \
DEF:a='/var/lib/cacti/rra/33/169.rrd':'traffic_in':AVERAGE \
DEF:b='/var/lib/cacti/rra/33/169.rrd':'traffic_out':AVERAGE \
DEF:c='/var/lib/cacti/rra/58/222.rrd':'traffic_in':AVERAGE \
DEF:d='/var/lib/cacti/rra/58/222.rrd':'traffic_out':AVERAGE \
DEF:e='/var/lib/cacti/rra/59/224.rrd':'traffic_in':AVERAGE \
DEF:f='/var/lib/cacti/rra/59/224.rrd':'traffic_out':AVERAGE \
CDEF:cdefa='a,0,*' \
CDEF:cdefb='b,0,*' \
CDEF:cdefc='c,0,*' \
CDEF:cdefd='d,0,*' \
CDEF:cdefe='e,0,*' \
CDEF:cdeff='f,0,*' \
CDEF:cdefg='TIME,1592211377,GT,a,a,UN,0,a,IF,IF,TIME,1592211377,GT,c,c,UN,0,c,IF,IF,TIME,1592211377,GT,e,e,UN,0,e,IF,IF,+,+,8,*' \
CDEF:cdefba='TIME,1592211377,GT,a,a,UN,0,a,IF,IF,TIME,1592211377,GT,c,c,UN,0,c,IF,IF,TIME,1592211377,GT,e,e,UN,0,e,IF,IF,+,+' \
CDEF:cdefbb='TIME,1592211377,GT,b,b,UN,0,b,IF,IF,TIME,1592211377,GT,d,d,UN,0,d,IF,IF,TIME,1592211377,GT,f,f,UN,0,f,IF,IF,+,+,8,*,-1,*' \
CDEF:cdefbc='TIME,1592211377,GT,b,b,UN,0,b,IF,IF,TIME,1592211377,GT,d,d,UN,0,d,IF,IF,TIME,1592211377,GT,f,f,UN,0,f,IF,IF,+,+,8,*' \
CDEF:cdefbf='TIME,1592211377,GT,b,b,UN,0,b,IF,IF,TIME,1592211377,GT,d,d,UN,0,d,IF,IF,TIME,1592211377,GT,f,f,UN,0,f,IF,IF,+,+' \
AREA:cdefa#00CF00FF:'' \
AREA:cdefb#002A97FF:'' \
AREA:cdefc#00CF00FF:'' \
AREA:cdefd#002A97FF:'' \
AREA:cdefe#00CF00FF:'' \
AREA:cdeff#002A97FF:'' \
AREA:cdefg#00CF00FF:'Total Inbound' \
GPRINT:cdefg:LAST:' Current\:%8.2lf %s' \
GPRINT:cdefg:AVERAGE:'Average\:%8.2lf %s' \
GPRINT:cdefg:MAX:'Maximum\:%8.2lf %s' \
COMMENT:'Total In\: 0 bytes\n' \
AREA:cdefbb#002A97FF:'Total Outbound' \
GPRINT:cdefbc:LAST:'Current\:%8.2lf %s' \
GPRINT:cdefbc:AVERAGE:'Average\:%8.2lf %s' \
GPRINT:cdefbc:MAX:'Maximum\:%8.2lf %s' \
COMMENT:'Total Out\: 0 bytes\n' \
COMMENT:'Total (0.13 mbit in+out)\n'