[rrd-users] Re: Bandwidth

Alex van den Bogaerdt alex at slot.hollandcasino.nl
Mon Oct 22 20:44:30 MEST 2001

rplane at stoneage.com wrote:

> I'm not sure if RRDTool can help me with this, but here it goes. I have a
> client with a dsl that is allowed to use 10 gig a month for a set fee, and
> after that they are charged. Is there any way I could have a running total
> for the month or parse the xml dump file with perl (ex. Average for
> 10-10-2001 16.2k /sec could I do 16200*60*60*24 and get the actual
> bandwidth) Any Ideas?

If *you* decide on the start and end times of the graph (for instance
start of the month until last midnight) you can know the exact amount
of time lapsed.  In order to be able to do so you need to make sure
that the times you select are valid interval boundaries of rrdtool.

If you let rrdtool calculate an average and print that (using PRINT)
you can use it in an application.  Multiply by the known amount of
time and you end up with the consumed bandwidth.

Make sure you know how rrdtool does its job, else you might end up
with a system that isn't fair to the user.  Something you really
want to avoid is unknown data.  You also don't want the start or end
time of the graph being different from what you expect it to be (and
this can happen if you don't select the time yourself with care).

 / 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