Module: check_mk
Branch: master
Commit: 0bc7e8b6f0d4521afa865c7129b1ad97b3835102
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0bc7e8b6f0d452…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Tue May 17 13:06:16 2016 +0200
3603 FIX wut_webtherm: fixed empty data handling
---
.werks/3603 | 10 ++++++++++
ChangeLog | 1 +
checks/wut_webtherm | 2 +-
3 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/3603 b/.werks/3603
new file mode 100644
index 0000000..b2313b7
--- /dev/null
+++ b/.werks/3603
@@ -0,0 +1,10 @@
+Title: wut_webtherm: fixed empty data handling
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.9i1
+Date: 1463483137
+
+
diff --git a/ChangeLog b/ChangeLog
index 186bf86..15cc62a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -219,6 +219,7 @@
* 3470 FIX: mounts: Fix exception when displaying check parameters in WATO services
list...
* 3530 FIX: agent_vsphere: improved performance, too much perfcounters were queried
* 3134 FIX: windows agent: fixed bug where the last message of an eventlog was always
re-read
+ * 3603 FIX: wut_webtherm: fixed empty data handling
Multisite:
* 3187 notification view: new filter for log command via regex
diff --git a/checks/wut_webtherm b/checks/wut_webtherm
index e3a6c6b..fcdc7f4 100644
--- a/checks/wut_webtherm
+++ b/checks/wut_webtherm
@@ -41,7 +41,7 @@ def parse_wut_webtherm(info):
# Dependent on webtherm_type we have to determine
# which sensors are available. Feel free to
# declare more sensor types here.
- if "---" not in reading:
+ if "---" not in reading and reading:
# We have only temperature sensors
if int(webtherm_type) <= 9: # TODO: this is just a guess
parsed[sensor_id] = {