Module: check_mk
Branch: master
Commit: 4ca500a402d55602ffb9f47f246ddfbc040b1c3c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4ca500a402d556…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Apr 22 08:30:29 2016 +0200
3434 FIX cmctc_lcp: Fixed broken check in case parameter are specified
---
.werks/3434 | 9 +++++++++
ChangeLog | 1 +
checks/cmctc_lcp | 3 ++-
3 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/3434 b/.werks/3434
new file mode 100644
index 0000000..cb5685b
--- /dev/null
+++ b/.werks/3434
@@ -0,0 +1,9 @@
+Title: cmctc_lcp: Fixed broken check in case parameter are specified
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.9i1
+Date: 1461306614
+Class: fix
+
+
diff --git a/ChangeLog b/ChangeLog
index 28abeaa..c8c761d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -172,6 +172,7 @@
* 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
+ * 3434 FIX: cmctc_lcp: Fixed broken check in case parameter are specified
Multisite:
* 3187 notification view: new filter for log command via regex
diff --git a/checks/cmctc_lcp b/checks/cmctc_lcp
index c714e52..0637aeb 100644
--- a/checks/cmctc_lcp
+++ b/checks/cmctc_lcp
@@ -109,7 +109,8 @@ def check_cmctc_lcp(item, params, info, sensortype):
extra_state = 2
elif value >= warn:
extra_state = 1
- if states[-1]:
+
+ if extra_state:
extra_info += " (warn/crit at %d/%d%s)" % (warn, crit,
unit)
else:
perfdata = [(sensortype, value)]