Module: check_mk
Branch: master
Commit: 4faa80e0d597bc42df597f26fd53c52d0cdda210
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4faa80e0d597bc…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Dec 12 13:54:03 2014 +0100
#1762 FIX lnx_thermal: Now ignoring trip points with level 0
A level of 0 seem to mean that there is no trip point configured.
---
.werks/1762 | 10 ++++++++++
ChangeLog | 1 +
checks/lnx_thermal | 2 +-
3 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/1762 b/.werks/1762
new file mode 100644
index 0000000..9fab8c2
--- /dev/null
+++ b/.werks/1762
@@ -0,0 +1,10 @@
+Title: lnx_thermal: Now ignoring trip points with level 0
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i1
+Date: 1418388782
+
+A level of 0 seem to mean that there is no trip point configured.
diff --git a/ChangeLog b/ChangeLog
index 12ba867..ef8d08a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,7 @@
Checks & Agents:
* 1457 FIX: logins: new check renamed from "users" check...
NOTE: Please refer to the migration notes!
+ * 1762 FIX: lnx_thermal: Now ignoring trip points with level 0...
Multisite:
* 1758 Improved exception hander: Shows details without additional debug request,
added mailto link for error report...
diff --git a/checks/lnx_thermal b/checks/lnx_thermal
index ba0edcd..529fe3b 100644
--- a/checks/lnx_thermal
+++ b/checks/lnx_thermal
@@ -64,7 +64,7 @@ def check_lnx_thermal(item, params, info):
# ignore active cooling device trip points (means enabling a fan or
similar)
if tp_name == 'active':
continue
- if cur > level:
+ if level != 0 and cur > level:
if tp_name in [ 'hot', 'critical' ]:
state = max(state, 2)
else: