From: "Nikolai K. Bochev" <n.bochev@grandstarco.com>
To: Neil Aggarwal <neil@JAMMConsulting.com>
Cc: kvm@vger.kernel.org
Subject: Re: Using snmpd on host to monitor guest bandwidth usage
Date: Sat, 24 Oct 2009 22:49:45 +0300 (EEST) [thread overview]
Message-ID: <398166133.4521256413785803.JavaMail.root@yellowwing> (raw)
In-Reply-To: <7BDC24FC8AF44ED7A967171E355E6813@neilhp>
Hello,
As far as i know, you can fix the vm's interfaces on the host. I'm using libvirt and you can do it there as described in here :
http://libvirt.org/formatdomain.html#elementsNICSBridge ( What you're looking for is <target dev='vnet0'/> directive ).
If you don't do this, vnet interfaces will be assigned to vm's in the order they start - the first one getting vnet0, the second one vnet1 etc.
----- Original Message -----
From: "Neil Aggarwal" <neil@JAMMConsulting.com>
To: kvm@vger.kernel.org
Sent: Saturday, October 24, 2009 4:52:59 PM
Subject: Using snmpd on host to monitor guest bandwidth usage
Hello:
I am using Cacti to monitor traffic usage on my network.
According to what I am reading, snmpd can report traffic
stats to Cacti.
Running netstat -in on the host, I see this output:
Kernel Interface table
Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP
TX-OVR Flg
br0 1500 0 237609 0 0 0 13615 0 0
0 BMRU
eth0 1500 0 967594 0 0 0 354576 0 0
0 BMRU
lo 16436 0 63 0 0 0 63 0 0
0 LRU
virbr0 1500 0 0 0 0 0 32 0 0
0 BMRU
vnet0 1500 0 29802 0 0 0 306940 0 0
0 BMRU
vnet1 1500 0 311556 0 0 0 789331 0 0
0 BMRU
Each guest runs a bridge interface with a static IP address.
Looking at the firewall logs vnet1 is connected to guestA and
vnet0 is connected to guestB. Will that ever change if I reboot
the host or the guests? If it does, that would be a problem.
Are there any pitfalls of using this approach?
I am looking for a solution where I do not need to run anything
on the guests.
Thanks,
Neil
--
Neil Aggarwal, (281)846-8957, www.JAMMConsulting.com
Will your e-commerce site go offline if you have
a DB server failure, fiber cut, flood, fire, or other disaster?
If so, ask about our geographically redundant database system.
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2009-10-24 19:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-24 13:52 Using snmpd on host to monitor guest bandwidth usage Neil Aggarwal
2009-10-24 19:49 ` Nikolai K. Bochev [this message]
2009-10-25 0:23 ` Neil Aggarwal
2009-10-25 5:46 ` Avi Kivity
2009-10-25 7:02 ` Nikolai K. Bochev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=398166133.4521256413785803.JavaMail.root@yellowwing \
--to=n.bochev@grandstarco.com \
--cc=kvm@vger.kernel.org \
--cc=neil@JAMMConsulting.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.