Subject: Re: [vserver] Bandwidth monitoring
From: Jean Weisbuch <jean@phpnet.org>
Date: Wed, 24 Dec 2014 01:08:10 +0100

You can read how much data has transited on each network interfaces 
inside a guest by reading : /proc/net/dev
You just have to take the value at first then wait some time, take the 
new value, substract the first one to the second then divide it by how 
long in seconds you waited between the two checks.

If you want to check from the host, here is a script i made : 
http://paste.debian.net/137926/

Le 24/12/2014 00:45, Laurens Vets a écrit :
> Hi list,
>
> Is it possible to monitor the bandwidth of 1 particular guest from 
> inside that guest?
>
> Basically, I want to run vnstat inside a guest monitoring only the 
> traffic that guest generates. Is that possible somehow?