Bandwidth monitor for a server with many virtual hosts

John Van Ostrand john-Da48MpWaEp0CzWx7n4ubxQ at public.gmane.org
Wed Aug 15 18:12:17 UTC 2007


On Wed, 2007-08-15 at 13:46 -0400, Madison Kelly wrote:
>    Until now, I have not worried about how much bandwidth various 
> customers whom we host use. Now that our number of clients grows though, 
> I need to start tracking who uses how much bandwidth.
> 
>    What do you guys here use to log bandwidth usage? Our clients use 
> mail, web and can copy data to/from the server via scp/rsync. I suspect 
> I could hack up something using TCP dump, but I really doubt I could 
> come up with something elegant and efficient. :)

Do all of your virtualhosts use separate access_log and error_log files?
That would make it easy to parse those for bytes transferred. It's won't
take into account TCP overhead, but it would allow you single out a busy
host.

Have you taken a look at ntop and apachetop? Ntop can classify traffic
by service (http vs. smtp vs pop vs https, etc) and by IP address.
Apachetop shows you top-like stats on web page hits by tailing
access_logs. Again not really what you are looking for but I thought I
would offer it.

-- 
Register for the Ontario Linux Fest Conference today!
A Linux conference for users by users. http://onlinux.ca
--
John Van Ostrand                          Net Direct Inc.
CTO, co-CEO                      564 Weber St. N. Unit 12
                                     Waterloo, ON N2L 5C6
john-Da48MpWaEp0CzWx7n4ubxQ at public.gmane.org                  Ph: 866-883-1172 x5102
Linux Solutions / IBM Hardware          Fax: 519-883-8533

--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list