Module: check_mk
Branch: master
Commit: fd424303748cfffcc9e52bcc52215e578a5d432b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=fd424303748cff…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Jan 26 14:18:31 2016 +0100
#2962 FIX esx_vsphere_vm.guest_tools: Fixed exception in case no version info is
available
---
.werks/2962 | 9 +++++++++
ChangeLog | 1 +
checks/esx_vsphere_vm | 5 ++++-
3 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/.werks/2962 b/.werks/2962
new file mode 100644
index 0000000..9920abd
--- /dev/null
+++ b/.werks/2962
@@ -0,0 +1,9 @@
+Title: esx_vsphere_vm.guest_tools: Fixed exception in case no version info is available
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.7i4
+Date: 1453814285
+Class: fix
+
+
diff --git a/ChangeLog b/ChangeLog
index c3964d7..e252129 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -221,6 +221,7 @@
* 2959 FIX: apt: Made check more robust against invalid agent data
* 2960 FIX: tsm_stagingpools: Fixed exception in case of garbled agent output
* 2961 FIX: tsm_sessions: Fixed crash in cae of client name contains spaces
+ * 2962 FIX: esx_vsphere_vm.guest_tools: Fixed exception in case no version info is
available
Multisite:
* 2684 Added icons for downloading agent data / walks of hosts...
diff --git a/checks/esx_vsphere_vm b/checks/esx_vsphere_vm
index 6f0a8f2..1d51288 100644
--- a/checks/esx_vsphere_vm
+++ b/checks/esx_vsphere_vm
@@ -238,7 +238,10 @@ def inventory_esx_vsphere_vm_guest_tools(info):
def check_esx_vsphere_vm_guest_tools(_no_item, params, info):
data = esx_vsphere_vm_convert(info)
- vm_status = data['guest.toolsVersionStatus'][0]
+ try:
+ vm_status = data['guest.toolsVersionStatus'][0]
+ except KeyError:
+ return
guest_tools_map = {
"guestToolsCurrent": (0, "VMware Tools are installed and the
version is current"),