From owner-freebsd-questions Wed Aug 15 7:17:17 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.mato.com (Mail.mato.com [199.240.78.3]) by hub.freebsd.org (Postfix) with ESMTP id 29E5237B403 for ; Wed, 15 Aug 2001 07:17:13 -0700 (PDT) (envelope-from dragonk@mato.com) Received: from (BUD) [199.240.79.221] by mail.mato.com with smtp id 15X1TU-0002OW-00; Wed, 15 Aug 2001 08:16:54 -0600 Message-ID: <021501c12595$7b02a410$0100a8c0@BUD> From: "Samuel Greear" To: "Rob" , "Freebsd-Questions@Freebsd. Org" References: Subject: Re: Bandwidth usage monitoring... Date: Wed, 15 Aug 2001 08:20:05 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Mato: Delivery by Altaire Enterprises, Inc. Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG For things such as webserving that are name-based you are pretty much stuck parsing the logfiles to keep track of bandwidth usage. For IP-based services it's cheeze, check out IPFW and its count rules. You can easily keep track of bytes/packets. Sam > I'm trying to setup a new FreeBSD web server at work - and I want to be able > to monitor the amount of bandwidth / data being used each month by different > clients / services. > > It doesn't need to be majorly detailed, but I would need to be able to see: > > 1. How much data has been sent / received in total that month > 2. How much was web traffic for each virtual domain > 3. How much was sent / received in total that month broken down by port.. > > I think I can sort out 2 because I have analog installed, and I can wrap > some PHP around that to get a report for each domain, but if there is a > better solution that would be really useful. > > The idea behind 1 is that our ISP charges us based on how much data we send > / receive each month, but won't tell us how much we have used! They just > send us the bill!!! I'd like to have some idea myself... > > Point 3 is because I'm thinking of offering a free email service for the > Christian Unions in the UK on our server, but if it was consuming >4GB / > month then it would start to affect the running cost of the server (which > would be bad)... at the moment I'm the only person with an email account on > there. > > It would be ideal if I could record the amount of data sent / received per > user email account... but I don't know exactly how I'd do this (unless I > coded it somehow into the PHP webmail thing I'll be writing) - that would be > best because I could see if anyone was abusing the system, or limit the > amount of data people could send (or something). > > Some advice on what software there is out there to do this would be really > good :0) I know of MTRG, but that just graphs bandwidth doesnt it? > > Many thanks! > -Rob > > -------------------------------- > http://www.robhulme.com > http://www.christianunion.org.uk > > Give a man a fish, he owes you one fish. > Let Oliver Emberton into the fishing industry, and fishing will no longer be > free. > > Everything you've learned in school as "obvious" becomes less and less > obvious as you begin to study the universe. > For example, there are no solids in the universe. > There's not even a suggestion of a solid. There are no absolute continuums. > There are no surfaces. There are no straight lines. > ---- R. Buckminster Fuller > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message