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

Delete cisco_asyncos_feature_keys.py

parent 013f1022
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.valuespec import (
Dictionary,
Integer,
TextAscii,
ListOfStrings,
Tuple,
)
from cmk.gui.plugins.wato import (
CheckParameterRulespecWithItem,
rulespec_registry,
RulespecGroupCheckParametersNetworking,
)
def _parameter_valuespec_cisco_asyncos_feature_keys():
return Dictionary(elements=[
('features_ignore',
ListOfStrings(
title=_('feature keys features to ignore'),
orientation='vertical',
allow_empty=False,
help=_('there will be no warning/critical if this features are expired'
'Examples: McAfee, IronPort Email Encryption, Data Loss Prevention, etc.'),
)
),
('expire',
Tuple(
title=_('Levels for feature key expiration in days'),
elements=[
Integer(title=_('Warning'), default_value=30, unit=_('days before expiration')),
Integer(title=_('Critical'), default_value=7, unit=_('days before expiration')),
])),
])
rulespec_registry.register(
CheckParameterRulespecWithItem(
check_group_name='cisco_asyncos_feature_keys',
group=RulespecGroupCheckParametersNetworking,
item_spec=lambda: TextAscii(title=_('Cisco AsyncOS feature keys'), ),
match_type='dict',
parameter_valuespec=_parameter_valuespec_cisco_asyncos_feature_keys,
title=lambda: _('Cisco AsyncOS feature keys'),
))
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