[rrd-users] Graphing total traffic...not working on daily graph
Richard Burton
richard at atomwide.com
Thu Nov 2 10:42:32 CET 2017
Hi there, apologies for the repost, not had a response so hoping someone could help
I have any issue with creating a graph definition for total amounts of data over a given period for a network interface.
I have followed Tobi's advice on this stackoverflow page
https://stackoverflow.com/questions/31812055/how-do-i-create-accumulated-bandwidth-usages-in-rrdtool-ie-gbs-per-month-down
however the issue I have is that when I view the graph for a daily time period the amount of data reported is too low but when I view at higher resolutions, for example a 20 minute interval the graph is correct.
I have a test box downloading a 1MB file every minute.
So I would expect 1440MB in a day at least but the graph on the daily view is only getting to around 600MB.
The output of an rrdtool info command is
filename = "1-172.31.10.154-ifInOctets_2_60.rrd"
rrd_version = "0003"
step = 60
last_update = 1509008361
header_size = 1624
ds[ifInOctets].index = 0
ds[ifInOctets].type = "COUNTER"
ds[ifInOctets].minimal_heartbeat = 60
ds[ifInOctets].min = 0.0000000000e+00
ds[ifInOctets].max = NaN
ds[ifInOctets].last_ds = "1874997951"
ds[ifInOctets].value = 4.5357725000e+05
ds[ifInOctets].unknown_sec = 0
rra[0].cf = "AVERAGE"
rra[0].rows = 129600
rra[0].cur_row = 47102
rra[0].pdp_per_row = 1
rra[0].xff = 5.0000000000e-01
rra[0].cdp_prep[0].value = NaN
rra[0].cdp_prep[0].unknown_datapoints = 0
rra[1].cf = "AVERAGE"
rra[1].rows = 38880
rra[1].cur_row = 30630
rra[1].pdp_per_row = 10
rra[1].xff = 5.0000000000e-01
rra[1].cdp_prep[0].value = 1.9536071167e+05
rra[1].cdp_prep[0].unknown_datapoints = 0
rra[2].cf = "AVERAGE"
rra[2].rows = 52560
rra[2].cur_row = 35410
rra[2].pdp_per_row = 30
rra[2].xff = 5.0000000000e-01
rra[2].cdp_prep[0].value = 6.2954044167e+05
rra[2].cdp_prep[0].unknown_datapoints = 0
rra[3].cf = "MAX"
rra[3].rows = 129600
rra[3].cur_row = 47102
rra[3].pdp_per_row = 1
rra[3].xff = 5.0000000000e-01
rra[3].cdp_prep[0].value = NaN
rra[3].cdp_prep[0].unknown_datapoints = 0
rra[4].cf = "MAX"
rra[4].rows = 38880
rra[4].cur_row = 30630
rra[4].pdp_per_row = 10
rra[4].xff = 5.0000000000e-01
rra[4].cdp_prep[0].value = 2.1791705000e+04
rra[4].cdp_prep[0].unknown_datapoints = 0
rra[5].cf = "MAX"
rra[5].rows = 52560
rra[5].cur_row = 35410
rra[5].pdp_per_row = 30
rra[5].xff = 5.0000000000e-01
rra[5].cdp_prep[0].value = 2.1791705000e+04
rra[5].cdp_prep[0].unknown_datapoints = 0
So for my CDEF I'm using 60 as the step.
My graph definition is
"DEF:inOctAve=$in_bytes:ifInOctets:AVERAGE",
"DEF:outOctAve=$out_bytes:ifOutOctets:AVERAGE",
"CDEF:outOctT=outOctAve,60,*,PREV,ADDNAN",
"CDEF:outOctTMB=outOctT,1000000,/",
"CDEF:inOctT=inOctAve,60,*,PREV,ADDNAN",
"CDEF:inOctTMB=inOctT,1000000,/",
"LINE1:outOctTMB$COLOURS[0]:Total Outgoing (MB)\\l<file:///\\l>",
"LINE1:inOctTMB$COLOURS[1]:Total Incoming (MB)\\l<file:///\\l>",
"COMMENT:\\l",
"COMMENT:\\s",
"GPRINT:outOctTMB:LAST:Total Outgoing\\: %0.1lf (MB)\\l<file:///\\l>",
"GPRINT:inOctTMB:LAST:Total Incoming\\: %0.1lf (MB)\\l<file:///\\l>",
Any help much appreciated.
Thanks
Richard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.oetiker.ch/pipermail/rrd-users/attachments/20171102/0ade2606/attachment-0001.html>
More information about the rrd-users
mailing list