Log users' bandwidth use

I have my own vps running centos 5. On the server i host some virtual domains. I would like to log/monitor the bandwidth usage of each user/domain.

I would need to monitor how much bandwidth they use in each of the following services: their http usage (apache), smtp (sendmail), pop (dovecot), maybe ssh, and maybe ftp in future.

I think that cpanel has some demon (cpbandwd) that monitors this for it, so i think its possible, but unfortunately I dont have cpanel on the server.

The server has two network interfaces (two ip addresses) and all traffic goes through either one of them, so i cant analyze the bandwidth by dest ip.

Thanks for any help!
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You may try complete and free solution like: http://www.gplhost.com/software-dtc.html

Also you may analyze logs individually.
http and sendmail and ftp usage may be post-analyzed from log files, just choose correct analyzer and keep logs secure.

Probably free analyzer exists also for dovecot, I'm not sure. If you say about a number of virtual domains sitting on one IP, log analyzer is the only way I know.

Free analyzers should be tried and chosen individually for each service.
for sendmail:
- http://anteater.sourceforge.net/
- http://www.enderunix.org/isoqlog/
- http://yenigul.net/mreport/

for web and ftp:
- http://www.mrunix.net/webalizer/

Commercial analyzer,  supporting most log formats is a sawmill.

Also sometimes better/easier to write your own analyzer for your own needs.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
http:// thevpn.guruCommented:
I highly recommed ntop

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.