Module: check_mk
Branch: master
Commit: 3c5052a886795ca2ce7a890c88e7ac7ade494d4b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3c5052a886795c…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Jan 25 14:40:04 2016 +0100
#2952 FIX netextreme_psu_out: Fixed crash in case of phase can not be found anymore
---
.werks/2952 | 9 +++++++++
ChangeLog | 1 +
checks/elphase.include | 3 +++
3 files changed, 13 insertions(+)
diff --git a/.werks/2952 b/.werks/2952
new file mode 100644
index 0000000..8e58068
--- /dev/null
+++ b/.werks/2952
@@ -0,0 +1,9 @@
+Title: netextreme_psu_out: Fixed crash in case of phase can not be found anymore
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.7i4
+Date: 1453729176
+Class: fix
+
+
diff --git a/ChangeLog b/ChangeLog
index fa27960..f534056 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -209,6 +209,7 @@
* 2949 FIX: oracle_logswitches oracle_sessions oracle_version: Improved handling of
legacy oracle plugin error cases
* 2950 FIX: citrix_controller.sessions: Fixed crash in case active/inactive infos are
missing
* 2951 FIX: ibm_svc_disks: Fixed exception with disks having a TB capacity
+ * 2952 FIX: netextreme_psu_out: Fixed crash in case of phase can not be found
anymore
Multisite:
* 2684 Added icons for downloading agent data / walks of hosts...
diff --git a/checks/elphase.include b/checks/elphase.include
index c3307de..9a309fc 100644
--- a/checks/elphase.include
+++ b/checks/elphase.include
@@ -37,6 +37,9 @@ def inventory_elphase(parsed):
# }
# }
def check_elphase(item, params, parsed):
+ if item not in parsed:
+ return # Item not found in SNMP data
+
def tostring(value):
if type(value) == int:
return "%d" % value