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

Delete cisco_fw_connections.py

parent ecce10df
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright (C) 2019 tribe29 GmbH - License: GNU General Public License v2
# This file is part of Checkmk (https://checkmk.com). It is subject to the terms and
# conditions defined in the file COPYING, which is part of this source code package.
from cmk.gui.i18n import _
from cmk.gui.valuespec import (
Dictionary,
Integer,
Tuple,
)
from cmk.gui.plugins.wato import (
CheckParameterRulespecWithoutItem,
rulespec_registry,
RulespecGroupCheckParametersApplications,
)
def _parameter_valuespec_cisco_fw_connections():
return Dictionary(elements=[
('connections',
Tuple(
help=_('This rule sets ipper limits to the current number of connections through a Cisco firewall.'),
title=_('Maximum number of firewall connections'),
elements=[
Integer(title=_('Warning at'), unit='connections'),
Integer(title=_('Critical at'), unit='connections'),
],
)),
('connections_lower',
Tuple(
help=_('This rule sets lower limits to the current number of connections through a Cisco firewall.'),
title=_('Minimum number of firewall connections'),
elements=[
Integer(title=_('Warning if below'), unit='connections'),
Integer(title=_('Critical if below'), unit='connections'),
],
)),
],)
rulespec_registry.register(
CheckParameterRulespecWithoutItem(
check_group_name='cisco_fw_connections',
group=RulespecGroupCheckParametersApplications,
match_type='dict',
parameter_valuespec=_parameter_valuespec_cisco_fw_connections,
title=lambda: _('Cisco Firewall Connections'),
))
\ No newline at end of file
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