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

update project

parent 636528a4
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
#
from cmk.gui.i18n import _
from cmk.gui.plugins.wato.utils import (
HostRulespec,
rulespec_registry,
)
from cmk.gui.valuespec import (
Dictionary,
FixedValue,
TextAscii,
ListChoice,
)
from cmk.gui.plugins.wato.inventory import (
RulespecGroupInventory,
)
def _valuespec_inv_lldp_cache():
removecolumns = [
('port_description', 'Neighbour port description'),
('system_description', 'Neighbour description'),
('capabilities_map_supported', 'Capabilities map supported'),
('cache_capabilities', 'Cache Capabilities'),
]
return Dictionary(
title=_('LLDP cache'),
elements=[
('remove_domain',
FixedValue(
True,
title=_('Remove domain name from neighbour device name'),
totext=_(''),
default_value=False,
)),
('domain_name',
TextAscii(
title=_('Specific domain name to remove from neighbour device name'),
allow_empty=False,
default_value='',
)),
('removecolumns',
ListChoice(
title=_('List of columns to remove'),
help=_('information to remove from inventory'),
choices=removecolumns,
default_value=[],
)),
('use_short_if_name',
FixedValue(
True,
title=_('use short interface names (i.e. Gi0/0 for GigabitEthernet0/0)'),
totext=_(''),
default_value=False,
)),
],
)
rulespec_registry.register(
HostRulespec(
group=RulespecGroupInventory,
match_type="dict",
name="inv_parameters:inv_lldp_cache",
valuespec=_valuespec_inv_lldp_cache,
))
File added
No preview for this file type
......@@ -12,10 +12,11 @@
' - 2023-02-16: changed for CMK 2.1\n',
'download_url': 'https://thl-cmk.hopto.org',
'files': {'agent_based': ['inv_lldp_cache.py'],
'gui': ['wato/inv_lldp_cache.py', 'views/inv_lldp_cache.py']},
'gui': ['views/inv_lldp_cache.py',
'wato/check_parameters/inv_lldp_cache.py']},
'name': 'inv_lldp_cache',
'title': 'inventory for LLDP cache',
'version': '0.7.0-20230614',
'version.min_required': '2.1.0b1',
'version': '0.8.0-20230614',
'version.min_required': '2.2.0b1',
'version.packaged': '2.2.0p2',
'version.usable_until': '2.2.0b1'}
'version.usable_until': None}
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