[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] can one do traffic accounting on bridged domU's?


  • To: Xen User-List <xen-users@xxxxxxxxxxxxxxxxxxx>
  • From: "Fajar A. Nugraha" <fajar@xxxxxxxxx>
  • Date: Sat, 16 May 2009 18:58:16 +0700
  • Delivery-date: Sat, 16 May 2009 04:59:02 -0700
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

> Rudi Ahlers wrote:
>> Hi Fajar,
>>
>> This is how I have it currently. Each domU's interface name is "hard
>> coded" in it's config file, as follows:
>>
>> vif        = ['ip=1.2.3.4, vifname=vifrudi0,  mac=aa:00:bf:5b:79:01 ']
>>
>> But the problem I have is that snmp doesn't always work as expected, and
>> I'm thinking of a different approach, perhaps with iptables?

Did you restart snmpd after domU startup/shutdown? If you didn't, I
believe snmpd would end up listing two (or more) interface with  the
same name.

There's also this, which parses xentop's output into something
suitable for snmpd (and later, cacti) :
http://run.tournament.org.il/xen-vms-performance-collection/comment-page-1/
The posted xen_stats.pl don't work though, probably copy-paste error
or mangled by the CMS. Here's my version which should work for Xen 3.1
(tested on RHEL's Xen) and Xen 3.3.1 : http://pastebin.com/f1d292654

Regards,

Fajar

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.