diff --git a/web/plugins/wato/checkpoint_asg_sg_diag.py b/web/plugins/wato/checkpoint_asg_sg_diag.py deleted file mode 100644 index 292cf67e9d7141b4fc74b21ee7016b0a37845bf3..0000000000000000000000000000000000000000 --- a/web/plugins/wato/checkpoint_asg_sg_diag.py +++ /dev/null @@ -1,67 +0,0 @@ -#!/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_sg_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_sg_diag', - group=RulespecGroupCheckParametersNetworking, - match_type='dict', - parameter_valuespec=_parameter_valuespec_checkpoint_asg_sg_diag, - title=lambda: _('Check Point ASG Diag'), - ))