Summation totals for 24 hour periods seem to be always ~5 times less than what they should be.
Attached graph shows this.
Average inbound is 38.06Megabit. 38.06Megabit is 0.0047575 Gigabytes. (86400 seconds in a 24 hour period) * 0.0047575 Gigabytes = 411.048 GB
However the graph, as attached only calculated 82.2? 5 times less than what it should be. Any ideas on what I have broken?
The COMMENT fields for the summation are:
Code: Select all
Total In: |sum:auto:current:2:auto|
Total Out: |sum:auto:current:2:auto|
Code: Select all
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-60 \
--title=" xxx " \
--rigid \
--base=1000 \
--height=150 \
--width=600 \
--upper-limit=50000000 \
--lower-limit=0 \
--vertical-label="bits per second" \
--slope-mode \
--font TITLE:12:/usr/share/fonts/truetype/BankGothicLightBT.ttf \
--font LEGEND:8:/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf \
DEF:a="/usr/share/cacti/site/rra/core_traffic_in_250.rrd":traffic_in:AVERAGE \
DEF:b="/usr/share/cacti/site/rra/core_traffic_in_250.rrd":traffic_out:AVERAGE \
DEF:c="/usr/share/cacti/site/rra/core_traffic_in_250.rrd":traffic_in:AVERAGE \
DEF:d="/usr/share/cacti/site/rra/core_traffic_in_250.rrd":traffic_in:AVERAGE \
CDEF:cdefa=d,8,* \
CDEF:cdeff=b,8,* \
CDEF:cdefba=d,0,*,50000000,0.75,*,+ \
CDEF:cdefbb=d,0,*,50000000,1,*,+ \
AREA:cdefa#797C6E:"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\: 82.2 GB\n" \
LINE1:cdeff#55D6D3:"Outbound" \
GPRINT:cdeff:LAST:"Current\:%8.2lf %s" \
GPRINT:cdeff:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdeff:MAX:"Maximum\:%8.2lf %s" \
COMMENT:"Total Out\: 38.32 GB\n" \
LINE1:cdefba#DE0056:"75% Utilisation\n" \
LINE1:cdefbb#333333:"100% Utilisation"