Module: check_mk
Branch: master
Commit: e6451ad444ebe032244c2155efc402db494ad903
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e6451ad444ebe0…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Apr 29 13:41:00 2013 +0200
Fixed exception with host objects in esx_vsphere_objects
---
checks/esx_vsphere_objects | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/checks/esx_vsphere_objects b/checks/esx_vsphere_objects
index 846a950..a7221bf 100644
--- a/checks/esx_vsphere_objects
+++ b/checks/esx_vsphere_objects
@@ -59,7 +59,7 @@ def inventory_esx_vsphere_objects(info):
def check_esx_vsphere_objects(item, _no_params, info):
for line in info:
- if vsphere_object_names[line[0]] + " " + line[1] == item:
+ if vsphere_object_names[line[0]] + " " + line[1] == item and len(line)
> 3:
running_on = line[2]
power_state = line[3]
if power_state == "poweredOn":