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

update project

parent 435e45b9
No related branches found
No related tags found
No related merge requests found
......@@ -228,7 +228,7 @@ register.check_plugin(
discovery_function=discovery_checkpoint_identity_awareness,
check_function=check_checkpoint_identity_awareness,
check_default_parameters={
'ignore_counters' : [],
'ignore_counters': [],
},
check_ruleset_name='checkpoint_identity_awareness',
)
No preview for this file type
......@@ -11,7 +11,7 @@
'name': 'checkpoint_identity_awareness',
'num_files': 5,
'title': 'Check Point Identity Awareness checks',
'version': '20210825.v.0.2',
'version': '20221130.v.0.2a',
'version.min_required': '2.0.0',
'version.packaged': '2021.07.14',
'version.packaged': '2021.09.20',
'version.usable_until': None}
\ No newline at end of file
......@@ -9,24 +9,19 @@
#
# Check_MK checkpoint_identity_awareness WATO plugin
#
# 2022-11-29: fixed CheckParameterRulespecWithoutItem (from CheckParameterRulespecWithItem) THX to jblaak[at]gmail[dot]com
#
from cmk.gui.i18n import _
from cmk.gui.valuespec import (
Dictionary,
Integer,
TextAscii,
FixedValue,
ListChoice,
ListOf,
Tuple,
TextUnicode,
MonitoringState,
)
from cmk.gui.plugins.wato import (
CheckParameterRulespecWithItem,
rulespec_registry,
RulespecGroupCheckParametersNetworking,
CheckParameterRulespecWithoutItem
)
_ignorecounters = [
......@@ -67,22 +62,25 @@ def _parameter_valuespec_checkpoint_identity_awareness():
return Dictionary(
title=_('Check Point Identity Awareness status'),
elements=[
('ignore_counters',
ListChoice(
title=_('list of counters to ignore'),
help=_('Counters to remove from performance data.'),
choices=_ignorecounters,
default_value=[],
)),
(
'ignore_counters',
ListChoice(
title=_('list of counters to ignore'),
help=_('Counters to remove from performance data.'),
choices=_ignorecounters,
default_value=[],
)
),
],
)
rulespec_registry.register(
CheckParameterRulespecWithItem(
CheckParameterRulespecWithoutItem(
check_group_name='checkpoint_identity_awareness',
group=RulespecGroupCheckParametersNetworking,
match_type='dict',
# match_type='dict',
parameter_valuespec=_parameter_valuespec_checkpoint_identity_awareness,
title=lambda: _('Check Point Identity Awareness'),
))
)
)
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