aboutsummaryrefslogtreecommitdiff
path: root/libvirt-ifstat
diff options
context:
space:
mode:
authorGuido G√ľnther <agx@sigxcpu.org>2008-10-29 16:53:25 +0100
committerGuido Guenther <agx@sigxcpu.org>2008-10-29 16:55:15 +0100
commit87df1debe3fff47c56425d866daa03a5a2c55fa2 (patch)
tree3b87e0cc41f7b1de510a0e63ab8f65d35866ef58 /libvirt-ifstat
parent6d0909da57502ba90415a7e83fec8ffb427c0537 (diff)
don't draw graphs for Xen's dom0
since Xen doesn't provide any useful output
Diffstat (limited to 'libvirt-ifstat')
-rw-r--r--libvirt-ifstat4
1 files changed, 4 insertions, 0 deletions
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: