I have some shell users on a server with 300GB of monthly data transfer. How can I monitor bandwidth usage per user?
|
|
As root, you could at least measure the outgoing traffic on a per-user basis using the "owner" module of iptables. If all the users you want to monitor are in
And then the packet and byte counts for each user's outbound traffic are visible:
This could be extended further with CONNMARK to track the inbound side too. |
|||||||||||||
|
|
I just came across NetHogs:
This ought to let you track bandwidth by username. Might still need another couple tools to log the info and add it all up, but it's a good start without directly using iptables. |
|||
|
|
|
I looked a bit, and I haven't found a comprehensive gui package that does what you want. Hopefully one exists and someone will post about it here eventually. I'm not really a networking guy, but from what I've read, among many other things http://www.cyberciti.biz/faq/linux-configuring-ip-traffic-accounting/ |
|||||||||
|
|
You can use Cacti
Or vnStat
Both of them are great. |
|||||
|
