Package: virt-goodies
Version:0.3-1
Tested the munin plugin on a Xen host with libvirt configured, and the
munin plugin reports "No domains found." instead of showing
information.
Changing the uri used by the plugin like this made it show some
values:
--- /etc/munin/plugins/libvirt 2010-02-18 08:05:27.000000000 +0100
+++ /tmp/libvirt 2010-03-01 09:51:19.000000000 +0100
@@ -29,7 +29,7 @@
# Default settings
force_order = []
-uri = 'qemu:///system'
+uri = 'xen:///system'
graph_type = 'stacked'
# Get overrides from environment
The value shown was like this:
Domain__.value 191028835
I guess the 0 in Domain0 should be kept to avoid confusion. Something
like this might be good enough.
--- /etc/munin/plugins/libvirt 2010-02-18 08:05:27.000000000 +0100
+++ /tmp/libvirt 2010-03-01 09:57:06.000000000 +0100
@@ -37,7 +37,7 @@
if key in env:
locals()[key] = eval(env[key], None)
-valid_re = re.compile('[A-Za-z_]')
+valid_re = re.compile('[A-Za-z0-9_]')
def canonicalise(s):
retval = ''
Also, the munin plugin should be changed to dynamically detect if qemu
or xen uri should be used. Not quite sure how to best do it, but
perhaps the code behind 'virsh uri' can be used?
Happy hacking,
--
Petter Reinholdtsen
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]