Module: check_mk
Branch: master
Commit: ef24238348f65b6fd30657e1046432c0adbbec7c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ef24238348f65b…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Mon Dec 12 14:50:12 2016 +0100
4161 FIX emcvnx_sp_util: fixed empty data handling
Change-Id: Ibf70059919d8b1786fc32f575862aa11faa0646d
---
.werks/4161 | 10 ++++++++++
ChangeLog | 1 +
checks/emcvnx_sp_util | 6 +++++-
3 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/.werks/4161 b/.werks/4161
new file mode 100644
index 0000000..8ef12be
--- /dev/null
+++ b/.werks/4161
@@ -0,0 +1,10 @@
+Title: emcvnx_sp_util: fixed empty data handling
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.4.0i3
+Date: 1481550595
+
+
diff --git a/ChangeLog b/ChangeLog
index f2ed387..70728f6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -61,6 +61,7 @@
* 4159 FIX: mem.win: fixed KeyError
* 4102 FIX: logwatch: Fixed crash due to non-existant logfile...
* 4160 FIX: emcvnx_info: fixed data handling, now detects errors
+ * 4161 FIX: emcvnx_sp_util: fixed empty data handling
Multisite:
* 4070 Added a painter for the service check period
diff --git a/checks/emcvnx_sp_util b/checks/emcvnx_sp_util
index ace8fdb..46aac52 100644
--- a/checks/emcvnx_sp_util
+++ b/checks/emcvnx_sp_util
@@ -33,10 +33,14 @@ emcvnx_sp_util_default_levels = (50.0, 60.0)
def inventory_emcvnx_sp_util(info):
- return [ (None, "emcvnx_sp_util_default_levels") ]
+ if info:
+ return [ (None, "emcvnx_sp_util_default_levels") ]
def check_emcvnx_sp_util(item, params, info):
+ if not info:
+ return
+
for line in info:
if len(line) == 2 and "busy" in line[0]:
busy_ticks = float(line[1])