Subject: Re: [vserver] Network traffic monitoring per-vserver
From: Romain Riviere <romain.riviere@gmail.com>
Date: Sun, 22 May 2011 16:00:32 +0200

 Sun, 22 May 2011 16:00:32 +0200
Le 22 mai 2011 à 14:05, Daniel Hokka Zakrisson a écrit :

> Daniel Lo Nigro wrote:
>> Hi everyone,
>> Is it possible to monitor how much traffic each vserver is using? I'm currently
>> using vnstat for monitoring network transfer for the whole server, but it'd be
>> great to produce a report stating how much network transfer each vserver is
>> using per month as well.
> 
> You can graph iptables hit counters rather easily to get that sort of data.
> Just setup a rule like iptables -A OUTPUT -o eth0 -s <guest IP> and you
> will see.

I recently came across a nice munin plugin for iptables accounting too:
http://backreference.org/2010/07/31/munin-traffic-accounting-with-iptables/

Cheers,