diff --git a/web/plugins/wato/cisco_fw_nat_translations.py b/web/plugins/wato/cisco_fw_nat_translations.py deleted file mode 100644 index 5b4e937575ed4e7093ae6d85d1c4fbc4311df0b4..0000000000000000000000000000000000000000 --- a/web/plugins/wato/cisco_fw_nat_translations.py +++ /dev/null @@ -1,58 +0,0 @@ -#!/usr/bin/env python3 -# -*- coding: utf-8 -*- -# -# License: GNU General Public License v2 -# -# Author: thl-cmk[at]outlook[dot]com -# URL : https://thl-cmk.hopto.org -# Date : 2023-03-09 -# -# Cisco Firewall NAT translations WATO plugin -# -# 2023-03-10: moved rule to Networking -# -# - -from cmk.gui.i18n import _ -from cmk.gui.valuespec import ( - Dictionary, - Integer, - Tuple, -) - -from cmk.gui.plugins.wato import ( - CheckParameterRulespecWithoutItem, - rulespec_registry, - RulespecGroupCheckParametersNetworking, - Levels, -) - - -def _parameter_valuespec_cisco_fw_nat_translations(): - return Dictionary(elements=[ - ('levels_upper', - Levels( - title=_('NAT translations'), - unit=_('Translations'), - )), - ('levels_lower', - Tuple( - help=_('This rule sets lower levels to the active number of NAT translations through the firewall. ' - 'Will only be used if NAT translations is not predictive levels.'), - title=_('NAT translations lower levels'), - elements=[ - Integer(title=_('Warning if below'), unit='Translations'), - Integer(title=_('Critical if below'), unit='Translations'), - ], - )), - ],) - - -rulespec_registry.register( - CheckParameterRulespecWithoutItem( - check_group_name='cisco_fw_nat_translations', - group=RulespecGroupCheckParametersNetworking, - match_type='dict', - parameter_valuespec=_parameter_valuespec_cisco_fw_nat_translations, - title=lambda: _('Firewall NAT translatins'), - ))