diff --git a/agent_based/checkpoint_identity_awareness.py b/agent_based/checkpoint_identity_awareness.py index 1cb6ee256a28845cdcae3d2655299fe556f49995..f3a96262fd501efdc71ae909d969caf97007ef8c 100644 --- a/agent_based/checkpoint_identity_awareness.py +++ b/agent_based/checkpoint_identity_awareness.py @@ -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', ) diff --git a/checkpoint_identity_awareness.mkp b/checkpoint_identity_awareness.mkp index b6356f26bd3fca2b597d9a772cd0acd5aa7759e5..4ac8f11742cb3a5c1773c5137c823e068570f2d6 100644 Binary files a/checkpoint_identity_awareness.mkp and b/checkpoint_identity_awareness.mkp differ diff --git a/packages/checkpoint_identity_awareness b/packages/checkpoint_identity_awareness index a6cd71955c4ec119f35277393b335cf16f1eda97..84a8e3de9d4d71ee564e1c80a93639af71eadf38 100644 --- a/packages/checkpoint_identity_awareness +++ b/packages/checkpoint_identity_awareness @@ -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 diff --git a/web/plugins/wato/checkpoint_identity_awareness.py b/web/plugins/wato/checkpoint_identity_awareness.py index 1c3dc7c705c327cb3acebb2b4fa28a229ddef614..ec61d3a1a9ab914fad5432542e10cbbcc30c1648 100644 --- a/web/plugins/wato/checkpoint_identity_awareness.py +++ b/web/plugins/wato/checkpoint_identity_awareness.py @@ -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'), - )) + ) +)