Module: check_mk
Branch: master
Commit: 44c4c8a5af4f8b2438cc66cc2bfc44b3c81c22ac
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=44c4c8a5af4f8b…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Mon Sep 28 12:52:43 2015 +0200
fixed wrong naming in cisco_stackpower check
---
checks/cisco_stackpower | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/checks/cisco_stackpower b/checks/cisco_stackpower
index ec7ad73..2d6ea04 100644
--- a/checks/cisco_stackpower
+++ b/checks/cisco_stackpower
@@ -49,12 +49,12 @@
# .1.3.6.1.4.1.9.9.500.1.3.2.1.5.4001.1 1 -->
CISCO-STACKWISE-MIB::cswStackPowerPortLinkStatus.4001.1
-def inventory_cisco_stackports(info):
+def inventory_cisco_stackpower(info):
return [ ("%s %s" % (oid.split(".")[0], port_name), None) \
for oid, port_name, port_status in info ]
-def check_cisco_stackports(item, params, info):
+def check_cisco_stackpower(item, params, info):
map_status = {
"1" : (0, "connected and operational"),
"2" : (2, "forced down or not connected"),
@@ -65,9 +65,9 @@ def check_cisco_stackports(item, params, info):
return state, "link status: %s" % state_readable
-check_info['cisco_stackports'] = {
- 'inventory_function' : inventory_cisco_stackports,
- 'check_function' : check_cisco_stackports,
+check_info['cisco_stackpower'] = {
+ 'inventory_function' : inventory_cisco_stackpower,
+ 'check_function' : check_cisco_stackpower,
'service_description' : 'Stackpower Interface %s',
'snmp_info' : (".1.3.6.1.4.1.9.9.500.1.3.2.1", [
OID_END,