Hi Guys I''m trying to measure the traffic of domUs using vnstat without luck. My configuration: Debian 6.0.3 xen 4.0.1 vnstat 1.11 I''m using bonding with two network cards. auto bond0 iface bond0 inet manual slaves eth0 eth1 bond-mode active-backup bond-miimon 100 bond-updelay 200 bond-downdelay 200 bond-primary eth0 auto br0 iface br0 inet static address x.x.x.x netmask x.x.x.x network x.x.x.x broadcast x.x.x.x gateway x.x.x.x bridge_ports bond0 bridge_fd 0 bridge_hello 2 bridge_maxage 12 bridge_ageing 0 bridge_maxwait 0 bridge_stp off We use network-dummy as network-script in xen configuration. When monitoring the network traffic using vnstat the tx information of every domU is almost the same and it seems to be the overall traffic of the server. rx / tx / total / estimated domU1: Jan ''12 289 KiB / 62.04 MiB / 62.33 MiB / 0 KiB yesterday 274 KiB / 30.63 MiB / 30.90 MiB today 15 KiB / 31.42 MiB / 31.43 MiB / -- domU2: Jan ''12 169 KiB / 62.14 MiB / 62.31 MiB / 0 KiB yesterday 74 KiB / 30.83 MiB / 30.90 MiB today 95 KiB / 31.31 MiB / 31.40 MiB / -- domU3: Jan ''12 75 KiB / 62.27 MiB / 62.35 MiB / 0 KiB yesterday 64 KiB / 30.86 MiB / 30.92 MiB today 11 KiB / 31.41 MiB / 31.42 MiB / -- bond0: Jan ''12 58.49 MiB / 16.84 MiB / 75.33 MiB / 182.00 MiB yesterday 24.74 MiB / 11.06 MiB / 35.81 MiB today 33.75 MiB / 5.77 MiB / 39.52 MiB / 76 MiB br0: Jan ''12 28.93 MiB / 675 KiB / 29.59 MiB / 0 KiB yesterday 10.76 MiB / 337 KiB / 11.09 MiB today 18.17 MiB / 338 KiB / 18.50 MiB / -- How to measure the traffic using vnstat or any other software?. Please help. Best regards, Doan
Niels Dettenbach (Syndicat IT&Internet)
2012-Jan-13 17:52 UTC
Re: Measuring domU traffic with vnstat
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Doan Veitia <doanvc@gmail.com> schrieb:>How to measure the traffic using vnstat or any other software?. Please >help.We mainly use snmp (in conjunction i.e. with RRDTool / Cacti and own schripts) for this (which works on DomU and Dom0 level) on interface level. This works transparent with different guest / DomU systems and additional applications, independently from what and how you want to count the traffic flows. Another way may be measuring traffic on IP network/address level with regarding tools (i.e. ntop, iftop and even xentop etc.)... cheers, Niels. - -- Niels Dettenbach Syndicat IT&Internet http://www.syndicat.com -----BEGIN PGP SIGNATURE----- Version: APG v1.0.8 iIEEAREIAEEFAk8Qb1M6HE5pZWxzIERldHRlbmJhY2ggKFN5bmRpY2F0IElUJklu dGVybmV0KSA8bmRAc3luZGljYXQuY29tPgAKCRBU3ERlZRyiDdDdAJwKFOiQpJbd jFvQfR2V02sTrgtxWgCfa4Cm9vj8E0lk+7K2oQHoimQetvA=79zG -----END PGP SIGNATURE-----
> How to measure the traffic using vnstat or any other software?. > Please help.Openvswitch seems to have a lot of advanced features, including this. It''s fairly new software to me though so I can''t help much here. Secondly you might want to read the following thread: http://seclists.org/basics/2012/Jan/56 HTH
On Sat, Jan 14, 2012 at 3:00 AM, Mark van Dijk <mark@internecto.net> wrote:>> How to measure the traffic using vnstat or any other software?. >> Please help. > > Openvswitch seems to have a lot of advanced features, including this. > It''s fairly new software to me though so I can''t help much here.Open vSwitch provides support for NetFlow and sFlow traffic monitoring, giving detailed visibility into traffic flows between virtual machines. The sFlow protocol also exports per vNIC interface counters. http://blog.sflow.com/2011/10/comparing-sflow-and-netflow-in-vswitch.html Cheers, Peter