[rrd-users] Re: traffic summa for period

Alex van den Bogaerdt alex at ergens.op.HET.NET
Thu Jul 18 11:28:49 MEST 2002

Andrew I Baznikin wrote:

> I try to calculate summary traffic for some period. I write perl-script to parse `rrdtool fetch` output and to summ input and output deltas.
> Amount of traffic between time1 and time3 is delta1+delta2, right?

The stuff you read from the RRD are rates.  They represent bytes per second.

The rows you fetch are, according to the output of "rrdtool info", 300
seconds.  So, the amount of traffic is what you fetch multiplied by 300.

> cisco router statistic from 1026806310 (16 jul 2002 15:58) to 1026964250 (18 jul 2002 11:50:50) :

time 1026806310 is not a multiple of 300 so you cannot fetch the
interval ending at 1026806310.  Dito for 1026964250.

 / alex at slot.hollandcasino.nl                  alex at ergens.op.het.net \
| work                                                         private |
| My employer is capable of speaking therefore I speak only for myself |
| Technical questions sent directly to me will be nuked. Use the list. | 
| http://faq.mrtg.org/                                                 |
| http://rrdtool.eu.org  --> tutorial                                  |

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