From b5b20c4cc1b291868b044a8047b2265335d6ec2a Mon Sep 17 00:00:00 2001 From: thl-cmk <thl-cmk@outlook.com> Date: Sat, 4 Mar 2023 10:02:40 +0000 Subject: [PATCH] Delete checkpoint_fw_connections.py --- .../metrics/checkpoint_fw_connections.py | 133 ------------------ 1 file changed, 133 deletions(-) delete mode 100644 web/plugins/metrics/checkpoint_fw_connections.py diff --git a/web/plugins/metrics/checkpoint_fw_connections.py b/web/plugins/metrics/checkpoint_fw_connections.py deleted file mode 100644 index d880025..0000000 --- a/web/plugins/metrics/checkpoint_fw_connections.py +++ /dev/null @@ -1,133 +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 : 2018-03-17 -# -# Check Point Firewall connections metrics plugins -# checkpoint_fw_connections -# - -from cmk.gui.i18n import _ - -from cmk.gui.plugins.metrics import ( - metric_info, - graph_info, - perfometer_info, -) - -metric_info['checkpoint_fw_connections_fwconnectionstcp'] = { - 'title': _('TCP connections'), - 'unit': '1/s', - 'color': '11/a', -} -metric_info['checkpoint_fw_connections_fwconnectionsudp'] = { - 'title': _('UDP connections'), - 'unit': '1/s', - 'color': '25/a', -} -metric_info['checkpoint_fw_connections_fwconnectionsicmp'] = { - 'title': _('ICMP connections'), - 'unit': '1/s', - 'color': '31/a', -} -metric_info['checkpoint_fw_connections_fwconnectionsother'] = { - 'title': _('Other connections'), - 'unit': '1/s', - 'color': '41/a', -} -metric_info['checkpoint_fw_connections_fwconnectionssum'] = { - 'title': _('Total connections'), - 'unit': '1/s', - 'color': '15/a', -} -metric_info['checkpoint_fw_connections_fwconnectionrate'] = { - 'title': _('Connections rate'), - 'unit': '1/s', - 'color': '22/a', -} - -metric_info['checkpoint_fw_connections_fwcurrentnumconn'] = { - 'title': _('Current connections'), - 'unit': 'count', - 'color': '26/a', -} -metric_info['checkpoint_fw_connections_fwpeaknumconn'] = { - 'title': _('Peak Connections'), - 'unit': 'count', - 'color': '16/a', -} - -metric_info['checkpoint_fw_connections_relative'] = { - 'title': _('Connections relative'), - 'unit': '%', - 'color': '36/a', -} - -graph_info['checkpoint_fw_connections_fwpeaknumconn'] = { - 'title': _('Check Point Firewall Connections absolute'), - 'metrics': [ - ('checkpoint_fw_connections_fwcurrentnumconn', 'area'), - ('checkpoint_fw_connections_fwpeaknumconn', 'line'), - ], - 'scalars': [ - ('checkpoint_fw_connections_fwcurrentnumconn:crit', _('crit')), - ('checkpoint_fw_connections_fwcurrentnumconn:warn', _('warn')), - ], -} - -graph_info['checkpoint_fw_connections_relative'] = { - 'title': _('Check Point Firewall Connections relative to connection table limit'), - 'metrics': [ - ('checkpoint_fw_connections_relative', 'area'), - ], - 'scalars': [ - ('checkpoint_fw_connections_relative:crit', _('crit')), - ('checkpoint_fw_connections_relative:warn', _('warn')), - ], - 'range': (0, 110), -} - -graph_info['checkpoint_fw_connections_fwconnectionstcp'] = { - 'title': _('Check Point Firewall Connections per second'), - 'metrics': [ - ('checkpoint_fw_connections_fwconnectionsother', 'stack'), - ('checkpoint_fw_connections_fwconnectionsicmp', 'stack'), - ('checkpoint_fw_connections_fwconnectionsudp', 'stack'), - ('checkpoint_fw_connections_fwconnectionstcp', 'stack'), - ('checkpoint_fw_connections_fwconnectionssum', 'line'), - ('checkpoint_fw_connections_fwconnectionrate', 'line'), - ], -} - -perfometer_info.append(('stacked', [ - { - 'type': 'linear', - 'segments': ['checkpoint_fw_connections_relative'], - 'total': 100, - }, - { - 'type': 'logarithmic', - 'metric': 'checkpoint_fw_connections_fwconnectionrate', - 'half_value': 1000.0, - 'exponent': 2, - }, -])) - -perfometer_info.append(('stacked', [ - { - 'type': 'logarithmic', - 'metric': 'checkpoint_fw_connections_fwcurrentnumconn', - 'half_value': 100000.0, - 'exponent': 2, - }, - { - 'type': 'logarithmic', - 'metric': 'checkpoint_fw_connections_fwconnectionrate', - 'half_value': 1000.0, - 'exponent': 2, - }, -])) -- GitLab