Module: check_mk
Branch: master
Commit: cb9e1dd8f183cc1ce86a39c988db53c2574aef49
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=cb9e1dd8f183cc…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Tue Aug 20 12:25:26 2013 +0200
jolokia_metrics: fixed incorrect plugin output
---
ChangeLog | 1 +
checks/jolokia_metrics | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 365a5f1..91e5a8d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -64,6 +64,7 @@
new script caching options "off", "async",
"sync"
* windows_agent: increased maximum local/plugin script output length to 512kB
(output buffer now grows dynamically)
+ * jolokia_metrics: fixed incorrect plugin output for high warn/crit levels
Notifications:
* notify.py: Matching service level: Use the hosts service level if a
diff --git a/checks/jolokia_metrics b/checks/jolokia_metrics
index 35a1802..eb00e4b 100644
--- a/checks/jolokia_metrics
+++ b/checks/jolokia_metrics
@@ -346,10 +346,10 @@ def check_jolokia_metrics_app_sess(item, params, info):
status_txt = ' (Below or equal %d)' % lo_warn
elif hi_crit is not None and sess >= hi_crit:
status = 2
- status_txt = ' (Above or equal %d)' % lo_warn
+ status_txt = ' (Above or equal %d)' % hi_crit
elif hi_warn is not None and sess >= hi_warn:
status = 1
- status_txt = ' (Above or equal %d)' % lo_crit
+ status_txt = ' (Above or equal %d)' % hi_warn
if maxActive and maxActive > 0:
status_txt += " (max active sessions: %d)" % maxActive