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 @@
# 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-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
#
......@@ -158,8 +159,20 @@ def parse_cisco_eigrp_interface(info):
}
return name.get(mode, 'unknown')
def render_ip_address(bytestring):
return ".".join(["%s" % ord(m) for m in bytestring])
def get_short_if_name(st):
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
EigrpIfTable = []
......@@ -175,7 +188,7 @@ def parse_cisco_eigrp_interface(info):
for ifindex, ifname, iftype in InterfaceNames:
if int(ifindex) == cEigrpIfIndex: # compare interface index
if not int(iftype) == 24: # skip Loopback interfaces
cEigrpIfName = ifname
cEigrpIfName = get_short_if_name(ifname)
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