Module: check_mk
Branch: master
Commit: 45c52c546d293f40696bde1358265521dc442238
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=45c52c546d293f…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Thu Jan 29 12:31:24 2015 +0100
websphere_mq_channels: Check now handles sopped state as warning instead of critical
---
checks/websphere_mq_channels | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/checks/websphere_mq_channels b/checks/websphere_mq_channels
index 87667fc..ed51dca 100644
--- a/checks/websphere_mq_channels
+++ b/checks/websphere_mq_channels
@@ -56,7 +56,10 @@ def check_websphere_mq_channels(item, params, info):
message += "(!)"
message += ", Channel State: %s" % status
- if status not in [ 'RUNNING' ]:
+ if status == 'STOPPED':
+ state = 1
+ message += "(!)"
+ elif status not in [ 'RUNNING' ]:
state = 2
message += "(!!)"
perf = [ ('messages', messages, warn, crit, 0, max_messages) ]