aboutsummaryrefslogtreecommitdiff
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
parent6d0909da57502ba90415a7e83fec8ffb427c0537 (diff)
don't draw graphs for Xen's dom0
since Xen doesn't provide any useful output
-rw-r--r--libvirt-blkstat4
-rw-r--r--libvirt-ifstat4
2 files changed, 8 insertions, 0 deletions
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: