Module: check_mk
Branch: master
Commit: 46027b400047450c8c5c2407eb02a2838aabe422
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=46027b40004745…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Thu Jul 30 13:35:46 2015 +0200
Fixed interpretation of states; inactive is ok, active is not ok
---
checks/cisco_srst_state | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/checks/cisco_srst_state b/checks/cisco_srst_state
index 2023421..56ba614 100644
--- a/checks/cisco_srst_state
+++ b/checks/cisco_srst_state
@@ -39,9 +39,9 @@ def check_cisco_srst_state(_no_item, _no_params, info):
# Check the state
if srst_state == '1':
- yield 0, "SRST active"
+ yield 1, "SRST active"
else:
- yield 1, "SRST inactive"
+ yield 0, "SRST inactive"
# Display SRST uptime
yield check_uptime_seconds(None, int(uptime_text) * 60)