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

Delete cisco_fw_nat_translations.py

parent 93892caf
No related branches found
No related tags found
No related merge requests found
#!/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'),
))
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