+xvm-munin-config (0.0.3) unstable; urgency=low
+
+ * Fix xen_cpu script to leave out hyphens from UUID
+
+ -- Evan Broder <broder@mit.edu> Tue, 25 Nov 2008 19:07:44 -0500
+
xvm-munin-config (0.0.2) unstable; urgency=low
[ Quentin Smith ]
domains = server.xenapu.VM.get_all_records()
metrics = server.xenapi.VM_metrics.get_all_records()
for d in domains.values():
- ret[d['uuid']] = {'name': d['name_label'],
- 'cpu_time': sum(metrics[d['metrics']]['VCPUs_utilisation'].values()),
- 'domid': d['domid'],
- }
+ ret[d['uuid'].replace('-', '_')] = {'name': d['name_label'],
+ 'cpu_time': sum(metrics[d['metrics']]['VCPUs_utilisation'].values()),
+ 'domid': d['domid'],
+ }
return ret
else:
domains = server.xend.domains_with_state(True, 'all', True)
for d in domains:
- ret[sxp.child_value(d, 'uuid', 'NONE')] = {'name': sxp.child_value(d, 'name', 'UNKNOWN'),
- 'cpu_time': sxp.child_value(d, 'cpu_time', 0.0),
- 'domid': sxp.child_value(d, 'domid', -1),
- }
+ ret[sxp.child_value(d, 'uuid', 'NONE').replace('-', '_')] = {'name': sxp.child_value(d, 'name', 'UNKNOWN'),
+ 'cpu_time': sxp.child_value(d, 'cpu_time', 0.0),
+ 'domid': sxp.child_value(d, 'domid', -1),
+ }
return ret
if cmd == 'config':