[rrd-users] Re: Calculating traffic

Iñaki Martínez sistema at euskal-linux.org
Mon Jun 24 12:23:44 MEST 2002


Hi Alex van den Bogaerdt!!!

> > calculate incoming and outgoing traffic(MB).How should I do that?
> 
> If you multiply <something per second> with the amount of
> seconds, you end up with <something>

 OK.... but i can not do it works......
 
> Assuming ds0 is "in" and ds1 is "out":
> 
>     rrdtool graph whatever.png -a PNG --start end-2592000sec 
>     ...
>     CDEF:Xin=ds0,0.002592,*
>     CDEF:Xout=ds1,0.002592,*
>     ...
>     GPRINT:Xin:AVERAGE:"Total in:  %12.2lf MB\n"
>     GPRINT:Xout:AVERAGE:"Total out: %12.2lf MB\n"
>     ...

 OK.... I have the following:

     rrdtool graph whatever.png -a PNG --start -2h --stop now 
     ...
     CDEF:Xin=ds0,7200,*
     CDEF:Xout=ds1,7200,*
     ...
     GPRINT:Xin:AVERAGE:"Total in:  %12.2lf MB\n"
     GPRINT:Xout:AVERAGE:"Total out: %12.2lf MB\n"

 7200 = 2 * 60 * 60  (2 hours)
 

 so, i look at the number...

 36159401
 36148921 lesser
 36220119
 

 Some times i've got confusing numbers....

 have i something wrong??????




--
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