[EMAIL PROTECTED] 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). cheers, -- __________________________________________________________________ / [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
