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

Delete checkpoint_asg_diag.py

parent e2cf6f1d
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,
ListOfStrings,
Tuple,
)
from cmk.gui.plugins.wato import (
CheckParameterRulespecWithItem,
rulespec_registry,
RulespecGroupCheckParametersNetworking,
)
def _parameter_valuespec_checkpoint_asg_diag():
return Dictionary(elements=[
('levels_upper_last_run',
Tuple(
title=_('Maximum days no run "asg diag verify"'),
elements=[
Integer(
title=_('Warning at'),
unit='days',
default_value=3,
minvalue=1,
),
Integer(
title=_('Critical at'),
unit='days',
default_value=5,
minvalue=1,
)
],
)),
('asg_diag_ignore',
ListOfStrings(
title=_('Index list of ignored failde tests'),
orientation='horizontal',
allow_empty=False,
valuespec=Integer(minvalue=1, maxvalue=99),
help=_('This tests will be ignored if the are not "Passed". The monitoring state will stay OK'),
)),
('asg_diag_warning',
ListOfStrings(
title=_('Indix list of WARNING only failed tests'),
orientation='horizontal',
allow_empty=False,
valuespec=Integer(minvalue=1, maxvalue=99),
help=_('For this tests the monitoring state will be WARNING if the test result is not "Passed", '
'all other failed tests set the monitoring state to CRITICAL.'),
)),
])
rulespec_registry.register(
CheckParameterRulespecWithItem(
check_group_name='checkpoint_asg_diag',
group=RulespecGroupCheckParametersNetworking,
match_type='dict',
parameter_valuespec=_parameter_valuespec_checkpoint_asg_diag,
title=lambda: _('Check Point ASG Diag'),
))
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