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 cbf3097a authored by thl-cmk's avatar thl-cmk :flag_na:
Browse files

update project

parent 1dff7d77
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/python
# !/usr/bin/env python3
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# License: GNU General Public License v2
......@@ -116,10 +115,16 @@ def parse_cisco_wlc_ap_cdp_cache(string_table: StringTable):
def inventory_cisco_wlc_ap_cdp_cache(params, section) -> InventoryResult:
removecolumns = params['removecolumns']
remove_domain = params['remove_domain']
domain_name = params['domain_name']
use_short_if_name = params['use_short_if_name']
removecolumns = []
remove_domain = False
domain_name = ''
use_short_if_name = False
if params:
removecolumns = params.get('removecolumns', removecolumns)
remove_domain = params.get('remove_domain', remove_domain)
domain_name = params.get('domain_name', domain_name)
use_short_if_name = params.get('use_short_if_name', use_short_if_name)
path = ['networking', 'wlan', 'controller', 'ap_cdp_cache']
......@@ -174,11 +179,6 @@ register.snmp_section(
register.inventory_plugin(
name='inv_cisco_wlc_ap_cdp_cache',
inventory_function=inventory_cisco_wlc_ap_cdp_cache,
inventory_default_parameters={
'removecolumns': [],
'remove_domain': False,
'domain_name': '',
'use_short_if_name': False,
},
inventory_default_parameters={},
inventory_ruleset_name='inv_cisco_wlc_ap_cdp_cache',
)
No preview for this file type
{'author': 'thl-cmk[at]outlook[dot]com',
{'author': 'Th.L. (thl-cmk[at]outlook[dot]com)',
'description': 'SNMP inventory for Cisco WLC AP CDP cache '
'(CISCO-LWAPP-CDP-MIB).\n'
'\n'
......
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