Module: check_mk
Branch: master
Commit: c13898e7cec26c2e9df6e9ffa13d26ad343f37c5
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c13898e7cec26c…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Tue Aug 4 15:04:27 2015 +0200
esx_vsphere_counters: now able to process datastore names with spaces
---
checks/esx_vsphere_counters | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/checks/esx_vsphere_counters b/checks/esx_vsphere_counters
index f292a4c..5d881cb 100644
--- a/checks/esx_vsphere_counters
+++ b/checks/esx_vsphere_counters
@@ -138,7 +138,7 @@ def esx_vsphere_counters_get_item_mapping(parsed):
for instance, values in parsed.get("datastore.name").items():
if instance in map_instance_to_item and values[0][0] != "":
- map_instance_to_item[instance] = values[0][0]
+ map_instance_to_item[instance] = values[0][0].replace(" ",
"_")
return map_instance_to_item
def inventory_esx_vsphere_counters_datastoreio(parsed):