Module: check_mk
Branch: master
Commit: f4303efbf6cf7582d50e175b7f0d56140f4133f2
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f4303efbf6cf75…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Wed Feb 8 15:15:16 2017 +0100
4345 FIX hp_proliant_temp: Ignore device levels of 0
Change-Id: Iaa7ea0dfac79815dd3a447330c7ac45794c79497
---
.werks/4345 | 9 +++++++++
ChangeLog | 1 +
checks/hp_proliant_temp | 2 +-
3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.werks/4345 b/.werks/4345
new file mode 100644
index 0000000..1f98f8f
--- /dev/null
+++ b/.werks/4345
@@ -0,0 +1,9 @@
+Title: hp_proliant_temp: Ignore device levels of 0
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.4.0i4
+Date: 1486563269
+
diff --git a/ChangeLog b/ChangeLog
index b3f4b79..716b64c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -102,6 +102,7 @@
* 4024 FIX: netapp_api_volumes: fixed incorrect computation of read/write latency
* 4342 FIX: hp_proliant: fixed empty status handling
* 4216 FIX: cmciii.phase: Fix wrong scaling of power and energy values
+ * 4345 FIX: hp_proliant_temp: Ignore device levels of 0
Multisite:
* 4169 View action: Default values of sticky, notification and persistent options can
now be configured via global settings....
diff --git a/checks/hp_proliant_temp b/checks/hp_proliant_temp
index 8a70f84..557094e 100644
--- a/checks/hp_proliant_temp
+++ b/checks/hp_proliant_temp
@@ -40,7 +40,7 @@ def check_hp_proliant_temp(item, params, info):
# This case means no threshold available and
# the devices' web interface displays "N/A"
- if threshold == "-99":
+ if threshold == "-99" or threshold == "0":
devlevels = (None, None)
else:
threshold = float(threshold)