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

update project

parent 5e9c91d8
No related branches found
No related tags found
No related merge requests found
File added
No preview for this file type
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Cisco ASA connections metrics plugin
#
from cmk.gui.i18n import _
from cmk.gui.plugins.metrics.utils import (
metric_info,
graph_info,
)
metric_info['fw_connections_active'] = {
'title': _('Active connections'),
'unit': 'count',
'color': '26/a',
}
metric_info['fw_connections_peak'] = {
'title': _('Peak connections'),
'unit': 'count',
'color': '16/a',
}
graph_info['cisco_asa_connections'] = {
'title': _('Firewall connections'),
'metrics': [
('fw_connections_active', 'line'),
('fw_connections_peak', 'area'),
],
'scalars': [
('fw_connections_active:crit', _('crit level')),
('fw_connections_active:warn', _('warn level')),
],
}
#!/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.utils 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'),
))
......@@ -11,11 +11,11 @@
'download_url': 'https://thl-cmk.hopto.org',
'files': {'agent_based': ['cisco_asa_connections.py'],
'checks': ['cisco_asa_connections'],
'web': ['plugins/metrics/cisco_asa_connections.py',
'plugins/wato/cisco_fw_connections.py']},
'gui': ['metrics/cisco_asa_connections.py',
'wato/cisco_fw_connections.py']},
'name': 'cisco_asa_connections',
'title': 'Monitor Cisco ASA connections',
'version': '200607.v.0.5',
'version.min_required': '2.0.0b1',
'version': '0.5.0-200607',
'version.min_required': '2.1.0b1',
'version.packaged': '2.1.0p21',
'version.usable_until': None}
\ 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