• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 688
  • Last Modified:

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!
2 Solutions
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.
http:// thevpn.guruCommented:
I highly recommed ntop


Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now