Re: Determine daily traffic

rihad <[email protected]>
Newsgroups gmane.network.mrtg.user
Message-ID <[email protected]>
On 09/03/2012 01:12 AM, Steve Shipway wrote:
> The rrdfetch will give you the average rate for that interval, in bits/sec
>
> If you multiply the returned value by the interval size and divide by 8 you'll get it in bytes.
>
> rrdtool fetch myfile.rrd AVERAGE -r 86400 -e 1346526000 -s e-24h
>                               ds0                 ds1
> 1346544000: 4.3133558301e+04 2.2494106657e+03
>
> Multiply 43133 (ds0, bits/sec) by 86400 (sec in the interval, 1 day) and divide by 8 (bit/byte) to get bytes/day... this example makes about 455 MBytes which sounds reasonable.
>
> You could also use the Routers2 frontend to MRTG/RRD which calculates this for you and displays it on the page :)
>
> Steve
>
> Steve Shipway
> University of Auckland ITS
> UNIX Systems Design Lead
> [email protected]
> Ph: +64 9 373 7599 ext 86487
>
>
>

Thanks a lot, Steve, for clarifying. Works great!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.