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