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!