[rrd-users] Another monthly total question....
Isaac
isaac at netos.com
Tue Jul 23 20:13:22 MEST 2002
Greetings to all,
Hmmm....well, I have read the archives and the FAQ's and I am still not sure
about how to get *totally, or nearly* accurate sums for what our customers
push over a month's time.
Right now I can do this stuff:
./rrdtool graph /dev/null --start -1m DEF:inoctets=myrouter.rrd:ds0:AVERAGE
CDEF:in=inoctets,8,* PRINT:in:AVERAGE:"%lf"
and
./rrdtool graph /dev/null --start -1m DEF:outoctets=myrouter.rrd:ds1:AVERAGE
CDEF:out=outoctets,8,* PRINT:out:AVERAGE:"%lf"
this produces a number in bits of what the customer moved in and out on
average. I want the total tho.
so I read the archives and found stuff like this:
"Basically, you need to make use of the fact that an average multiplied by
an amount of time results in the total amount of bytes."
When I run the two above commands I get:
for IN: 762758
for OUT: 168539
I am good with that but what exactly are the steps to get the total amount
of bits if my .rrd has this:
./rrdtool info myrouter.rrd
filename = "myrouter.rrd"
rrd_version = "0001"
step = 300
last_update = 1026236102
ds[ds0].type = "COUNTER"
ds[ds0].minimal_heartbeat = 600
ds[ds0].min = 0.0000000000e+00
ds[ds0].max = 4.1287600000e+05
ds[ds0].last_ds = "154159614"
ds[ds0].value = 3.1184799333e+05
ds[ds0].unknown_sec = 0
ds[ds1].type = "COUNTER"
ds[ds1].minimal_heartbeat = 600
ds[ds1].min = 0.0000000000e+00
ds[ds1].max = 4.1287600000e+05
ds[ds1].last_ds = "4087087091"
ds[ds1].value = 3.7282346667e+04
ds[ds1].unknown_sec = 0
rra[0].cf = "AVERAGE"
rra[0].rows = 600
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[0].cdp_prep[1].value = NaN
rra[0].cdp_prep[1].unknown_datapoints = 0
rra[1].cf = "AVERAGE"
rra[1].rows = 700
rra[1].pdp_per_row = 6
rra[1].xff = 5.0000000000e-01
rra[1].cdp_prep[0].value = 1.5559430907e+05
rra[1].cdp_prep[0].unknown_datapoints = 0
rra[1].cdp_prep[1].value = 1.8690896289e+04
rra[1].cdp_prep[1].unknown_datapoints = 0
rra[2].cf = "AVERAGE"
rra[2].rows = 775
rra[2].pdp_per_row = 24
rra[2].xff = 5.0000000000e-01
rra[2].cdp_prep[0].value = 1.7140509822e+06
rra[2].cdp_prep[0].unknown_datapoints = 0
rra[2].cdp_prep[1].value = 7.1052780696e+05
rra[2].cdp_prep[1].unknown_datapoints = 0
rra[3].cf = "AVERAGE"
rra[3].rows = 797
rra[3].pdp_per_row = 288
rra[3].xff = 5.0000000000e-01
rra[3].cdp_prep[0].value = 9.2978212461e+06
rra[3].cdp_prep[0].unknown_datapoints = 0
rra[3].cdp_prep[1].value = 3.6467744309e+06
rra[3].cdp_prep[1].unknown_datapoints = 0
rra[4].cf = "MAX"
rra[4].rows = 600
rra[4].pdp_per_row = 1
rra[4].xff = 5.0000000000e-01
rra[4].cdp_prep[0].value = NaN
rra[4].cdp_prep[0].unknown_datapoints = 0
rra[4].cdp_prep[1].value = NaN
rra[4].cdp_prep[1].unknown_datapoints = 0
rra[5].cf = "MAX"
rra[5].rows = 700
rra[5].pdp_per_row = 6
rra[5].xff = 5.0000000000e-01
rra[5].cdp_prep[0].value = 1.5559430907e+05
rra[5].cdp_prep[0].unknown_datapoints = 0
rra[5].cdp_prep[1].value = 1.8690896289e+04
rra[5].cdp_prep[1].unknown_datapoints = 0
rra[6].cf = "MAX"
rra[6].rows = 775
rra[6].pdp_per_row = 24
rra[6].xff = 5.0000000000e-01
rra[6].cdp_prep[0].value = 1.5559430907e+05
rra[6].cdp_prep[0].unknown_datapoints = 0
rra[6].cdp_prep[1].value = 6.4100911183e+04
rra[6].cdp_prep[1].unknown_datapoints = 0
rra[7].cf = "MAX"
rra[7].rows = 797
rra[7].pdp_per_row = 288
rra[7].xff = 5.0000000000e-01
rra[7].cdp_prep[0].value = 1.5559430907e+05
rra[7].cdp_prep[0].unknown_datapoints = 0
rra[7].cdp_prep[1].value = 1.1141539782e+05
rra[7].cdp_prep[1].unknown_datapoints = 0
?
I know I am taking samples every five minutes but what is the math to get
the total of bits moved?
I have tried various things but they don't come out right.
Would it be: 762758 * 300 ?
--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the rrd-users
mailing list