Collection of CheckMK checks (see https://checkmk.com/). All checks and plugins are provided as is. Absolutely no warranty. Send any comments to thl-cmk[at]outlook[dot]com

Skip to content
Snippets Groups Projects
Commit 2ea99764 authored by thl-cmk's avatar thl-cmk :flag_na:
Browse files

update project

parent 41dd09cd
No related branches found
No related tags found
No related merge requests found
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
# 2018-08-06: modified scan function # 2018-08-06: modified scan function
# 2019-10-14: added support for hamc-sha-256 authentication, md5 moved to warn, none moved to crit # 2019-10-14: added support for hamc-sha-256 authentication, md5 moved to warn, none moved to crit
# 2019-10-16: added support for IPv6 and VRFs, added data parser function # 2019-10-16: added support for IPv6 and VRFs, added data parser function
# 2019-10-31: changed item from interface long-name to interface short name
# #
# snmpwalk sample # snmpwalk sample
# #
...@@ -158,8 +159,20 @@ def parse_cisco_eigrp_interface(info): ...@@ -158,8 +159,20 @@ def parse_cisco_eigrp_interface(info):
} }
return name.get(mode, 'unknown') return name.get(mode, 'unknown')
def render_ip_address(bytestring): def get_short_if_name(st):
return ".".join(["%s" % ord(m) for m in bytestring]) names = {'ethernet': 'Eth',
'fastethernet': 'Fa',
'gigabitethernet': 'Gi',
'tengigabitethernet': 'Te',
'fortygigabitethernet': 'Fo',
'hundredgigabitethernet': 'Hu',
'port-channel': 'Po',
'tunnel': 'Tu',
}
for item in names.keys():
if st.lower().startswith(item):
st = st.lower().replace(item, names.get(item))
return st
EigrpInterfaces, InterfaceNames, VrfInfo = info EigrpInterfaces, InterfaceNames, VrfInfo = info
EigrpIfTable = [] EigrpIfTable = []
...@@ -175,7 +188,7 @@ def parse_cisco_eigrp_interface(info): ...@@ -175,7 +188,7 @@ def parse_cisco_eigrp_interface(info):
for ifindex, ifname, iftype in InterfaceNames: for ifindex, ifname, iftype in InterfaceNames:
if int(ifindex) == cEigrpIfIndex: # compare interface index if int(ifindex) == cEigrpIfIndex: # compare interface index
if not int(iftype) == 24: # skip Loopback interfaces if not int(iftype) == 24: # skip Loopback interfaces
cEigrpIfName = ifname cEigrpIfName = get_short_if_name(ifname)
if cEigrpIfName != '': if cEigrpIfName != '':
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment