On Tue, 03-Jul-2001 at 22:33:54 +0200, Stefan wrote:
> Now i have the problem that i need to account traffic customers produce on
> Apache, ProFTPd and sendmail.
Check the logs produced by those packages; you'll find that they typically
include byte counts. You just have to write some scripts to parse them out
of the logs, and differentiate between the different customers.
For example, with Apache, you can make it easier by creating separate
access logs for each virtual host. Then you just run through and add up
the byte counts in each log file, et voilà!
> If it is possible i also want to count the HTTP overhead traffic and this
> things, because we have to pay our ISP for that.
That's a little harder. You can count that kind of thing too, but doing it
in a way that you can correlate to the logs to determine which virtual host
it was for is a bit harder.
--
Take care,
Scott \\'unsch
... I really wanted to get in shape, but the gym was two flights up!
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!