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.

HTH,
-- 
   __________________________________________________________________
 / [EMAIL PROTECTED]                  [EMAIL PROTECTED] \
| 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:[EMAIL PROTECTED]
Help        mailto:[EMAIL PROTECTED]
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

Reply via email to