From 87df1debe3fff47c56425d866daa03a5a2c55fa2 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Wed, 29 Oct 2008 16:53:25 +0100 Subject: don't draw graphs for Xen's dom0 since Xen doesn't provide any useful output --- libvirt-ifstat | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libvirt-ifstat') diff --git a/libvirt-ifstat b/libvirt-ifstat index 25ce452..696dd79 100644 --- a/libvirt-ifstat +++ b/libvirt-ifstat @@ -32,6 +32,8 @@ graph_info This graph shows the network I/O of the virtual machines""" for id in ids: dom = conn.lookupByID(id) name = dom.name() + if name == "Domain-0": + continue print "%s_rx.label %s" % (canon(name), name) print "%s_rx.type DERIVE" % canon(name) print "%s_rx.min 0" % canon(name) @@ -77,6 +79,8 @@ def fetch_values(uri): wr = 0 dom = conn.lookupByID(id) name = dom.name() + if name == "Domain-0": + continue ifaces = get_ifaces(dom) for iface in ifaces: try: -- cgit v1.2.3