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-blkstat | 4 ++++ libvirt-ifstat | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/libvirt-blkstat b/libvirt-blkstat index c88d8a4..a3e3b4c 100644 --- a/libvirt-blkstat +++ b/libvirt-blkstat @@ -32,6 +32,8 @@ graph_info This graph shows the block device I/O of the virtual machines""" for id in ids: dom = conn.lookupByID(id) name = dom.name() + if name == "Domain-0": + continue print "%s_read.label %s" % (canon(name), name) print "%s_read.type DERIVE" % canon(name) print "%s_read.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 disks = get_disks(dom) for disk in disks: try: 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