Module: check_mk
Branch: master
Commit: 2ed809dd5a8332db311b4dfbcbd12a4781851efd
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2ed809dd5a8332…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Tue Sep 1 09:15:47 2015 +0200
replaced wrong oids in comments and changed state for active srst mode
---
checks/cisco_srst_state | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/checks/cisco_srst_state b/checks/cisco_srst_state
index 56ba614..3181012 100644
--- a/checks/cisco_srst_state
+++ b/checks/cisco_srst_state
@@ -24,11 +24,8 @@
# to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
# Boston, MA 02110-1301 USA.
-
-# 1.3.6.1.4.1.9.9.441.1.2.32.1.1 -> csrstAccessCodeType: 1, 2, 3, 4(pri)
-# 1.3.6.1.4.1.9.9.441.1.2.32.1.2 -> csrstAccessCode: SnmpAdminString
-# 1.3.6.1.4.1.9.9.441.1.2.32.1.3 -> csrstAccessCodeDIDEnabled TruthValue
-
+# .1.3.6.1.4.1.9.9.441.1.3.1 CISCO-SRST-MIB::csrstState (1: active, 2: inactive)
+# .1.3.6.1.4.1.9.9.441.1.3.4 CISCO-SRST-MIB::csrstTotalUpTime
def inventory_cisco_srst_state(info):
return [ (None, None) ]
@@ -39,7 +36,7 @@ def check_cisco_srst_state(_no_item, _no_params, info):
# Check the state
if srst_state == '1':
- yield 1, "SRST active"
+ yield 2, "SRST active"
else:
yield 0, "SRST inactive"