Module: check_mk
Branch: master
Commit: c7ac769ed7763aca30fcb811a6feb856367e85a5
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c7ac769ed7763a…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Apr 22 08:26:47 2016 +0200
3433 FIX cmc_temp: Fixed broken check
---
.werks/3433 | 10 ++++++++++
ChangeLog | 1 +
checks/cmc_temp | 4 ++--
3 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/.werks/3433 b/.werks/3433
new file mode 100644
index 0000000..05ee2e6
--- /dev/null
+++ b/.werks/3433
@@ -0,0 +1,10 @@
+Title: cmc_temp: Fixed broken check
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.9i1
+Date: 1461306398
+
+
diff --git a/ChangeLog b/ChangeLog
index 07925f5..28abeaa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -171,6 +171,7 @@
* 3389 FIX: ps: Fixed stripped command lines for process checking on solaris systems
* 3391 FIX: CPU checks: Fixed graph per core when cores names don't have a
tailing number
* 3392 FIX: avaya_45xx_temp: Fixed broken check
+ * 3433 FIX: cmc_temp: Fixed broken check
Multisite:
* 3187 notification view: new filter for log command via regex
diff --git a/checks/cmc_temp b/checks/cmc_temp
index 780ecf2..39e7a15 100644
--- a/checks/cmc_temp
+++ b/checks/cmc_temp
@@ -39,8 +39,8 @@ def check_cmc_temp(item, params, info):
offset = int(item) - 1
current_temp = int(info[0][0][offset])
dev_high, dev_low = map(int, info[1][0][offset * 2:][:2])
- return check_temperature(current_temp, params, dev_levels = (dev_high,
dev_high),
- dev_levels_lower = (dev_low,
dev_low))
+ return check_temperature(current_temp, params, "cmc_temp_%s" % item,
+ dev_levels = (dev_high, dev_high), dev_levels_lower = (dev_low,
dev_low))
check_info['cmc_temp'] = {
"inventory_function" : inventory_cmc_temp,