From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Dmytro O. Redchuk" Date: Mon, 23 May 2005 06:39:56 +0000 Subject: Re: [LARTC] wanted A tool to measure bandwidth.... Message-Id: <20050523063956.GA26809@ldc.net> List-Id: References: <20050512045128.81115.qmail@web8510.mail.in.yahoo.com> In-Reply-To: <20050512045128.81115.qmail@web8510.mail.in.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org On Mon, May 23, 2005 at 10:31:30AM +1200, Simon Byrnand wrote: > However one comment - reading byte counters from TC (assuming thats what it > does - I havn't studied it or installed it yet) for the purposes of billing > customer usage is not recommended, as the HTB docs specifically say that > they are not completely accurate due to rounding. (And we have also found > they are a bit inaccurate) Sure, it's not for billing. But one can analyze HTB "feeling and behaviour" with these scripts anyway. It's great if I can tell my customer something like "yes, right you are, you are experiencing delays (up to 10 seconds BTW), and that's because your bandwidth exhausted; no, no, no drops, just delaying..." :-) > Then in mrtg.cfg: > > Target[CustomerName]: `/root/mrtg/bin/get-radiolink-use` > > This is a simplified example that doesn't take into account more than one > customer. To scale up you would want the various scripts to be > automatically generated... > > We find byte counting using ipchains/iptables to be very accurate, and no > SNMP is needed provided the byte counting is done on the same machine as > mrtg is run... Once more: mrtg can deal with rrd bases, I believe you assume such setup, dont you?-) You can store rrd bases regularly and fetch the data with scripts. ps. I like rrd bases and work with them directly very often, with no mrtg. As you can see :-) That's why py-htbstat uses py-rrdtool. > > Regards, > Simon -- _,-=._ /|_/| `-.} `=._,.-=-._., @ @._, `._ _,-. ) _,.-' ` G.m-"^m`m' Dmytro O. Redchuk _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc