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,
Romain
Received on Sun May 22 15:00:47 2011