WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] How can I monitor each domU's bandwidth?

To: "Luke S Crawford" <lsc@xxxxxxxxx>
Subject: Re: [Xen-users] How can I monitor each domU's bandwidth?
From: "Rudi Ahlers" <rudiahlers@xxxxxxxxx>
Date: Mon, 20 Oct 2008 09:03:27 +0200
Cc: xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 20 Oct 2008 00:04:09 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=TnyO5QdfP8lzLdtmBmdPbIjNFix5BosdqQvM+p8yeOU=; b=WhHuYIo4lXXrvzsG3UjajgvqJYqFr1z+srj3UOHUeTlHKdazC14D4LY7o1KCQPCEij hZ5M+yELC+VV6fHpzQ3XRkvFv3L6d/n5bJpGR9aBu33SQRnLh9NT/7YavagdWDmMXbJ6 hXOmsk5fesmHnRkN5cYMmiOOT6BPRz+W0bB58=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=g/kcSChsJLlNJgPwvDdBDfqlq6x4X2jysdFlKwtUekCDrgqGoNSuhL9Rj798ZWK1tH aRA++gGMNOZafO9/BYEmVF0dszFaMvhzJIPbUFkdhRmr9icZw3ukxLWLFhut34wd6tN3 7+1vN55qtFuLTTYZWcCWGQ1dWTITIHjjE7p6c=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <m3wsg7dl60.fsf@xxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <695200da0810150351n72443642ofa224bacc18c9bbe@xxxxxxxxxxxxxx> <m3wsg7dl60.fsf@xxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Fri, Oct 17, 2008 at 10:24 PM, Luke S Crawford <lsc@xxxxxxxxx> wrote:
> "Rudi Ahlers" <rudiahlers@xxxxxxxxx> writes:
>> I desperately need some help with this. We provide XEN VPS's to our
>> clients in a hosting environment, and I need to measure the bandwidth
>> usage per VPS, since we charge per MB / per GB for bandwidth.
>
> Me too.
>
>> Someone suggested Cacti, and it works well, but every now and then it
>> stops monitoring each VPS's bandwidth (for no apparent reason), and
>> then I need to recreate the VPS's interface in Cacti - but this often
>> means that we've lost a few days (and close to a few GB's) traffic.
>
> I had the same problem.
>
> There is a setting in cacti... you want a 're-index method' that will reindex
> the vifnames every reboot.  Essentially, every time you destroy/create
> the DomU, the interface is recreated.  Of course, you are setting the
> vifnames so that the names don't change, but the numeric SNMP IDs do,
> so you need to tell cacti to reindex the mapping from names to numeric
> ids often (or when domains are created or destroyed)
>
>
Ok,I think I found the setting, it's in the device options, and you
need to choose between:
- None
- Uptime goes Backward
- Index Count Changed
- Verify All Fields


So, which one should I use?
The funny thing is, that the virtual machines don't reboot, so I can't
see how the interface changes, there must be something else that
changes. The interface names are also hard coded for each virtual
machine, so even if it does reboot it still uses vifplut0, or
vifwise0, or vifkeith0, etc.


-- 

Kind Regards
Rudi Ahlers

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users