diff --git a/web/plugins/metrics/checkpoint_asg_sg_counters.py b/web/plugins/metrics/checkpoint_asg_sg_counters.py deleted file mode 100644 index 84014cee137c5a8faf8c15429f56f7d900ea86f3..0000000000000000000000000000000000000000 --- a/web/plugins/metrics/checkpoint_asg_sg_counters.py +++ /dev/null @@ -1,288 +0,0 @@ -#!/usr/bin/env python3 -# -*- coding: utf-8 -*- -# - -from cmk.gui.i18n import _ - -from cmk.gui.plugins.metrics import ( - metric_info, - graph_info, - perfometer_info, -) - -metric_info['checkpoint_asg_sg_counters_concurr_conn'] = { - 'title': _('Connections'), - 'unit': 'count', - 'color': '26/a', -} -metric_info['checkpoint_asg_sg_counters_accel_concurr_conn'] = { - 'title': _('Connections Accelerated'), - 'unit': 'count', - 'color': '32/a', -} -metric_info['checkpoint_asg_sg_counters_non_accel_concurr_conn'] = { - 'title': _('Connections non Accelerated'), - 'unit': 'count', - 'color': '16/a', -} - -metric_info['checkpoint_asg_sg_counters_connection_rate'] = { - 'title': _('Connection Rate'), - 'unit': '1/s', - 'color': '26/a', -} -metric_info['checkpoint_asg_sg_counters_accel_connection_rate'] = { - 'title': _('Connection Rate Accelerated'), - 'unit': '1/s', - 'color': '32/a', -} -metric_info['checkpoint_asg_sg_counters_non_accel_connection_rate'] = { - 'title': _('Connection Rate non Accelerated'), - 'unit': '1/s', - 'color': '16/a', -} - -metric_info['checkpoint_asg_sg_counters_load'] = { - 'title': _('Load'), - 'unit': '%', - 'color': '26/a', -} -metric_info['checkpoint_asg_sg_counters_accel_load_max'] = { - 'title': _('Accel load (max)'), - 'unit': '%', - 'color': '31/a', -} -metric_info['checkpoint_asg_sg_counters_accel_load_avg'] = { - 'title': _('Accel load (avg)'), - 'unit': '%', - 'color': '16/a', -} -metric_info['checkpoint_asg_sg_counters_accel_load_min'] = { - 'title': _('Accel load (min)'), - 'unit': '%', - 'color': '11/a', -} - -metric_info['checkpoint_asg_sg_counters_instances_load_avg'] = { - 'title': _('Instances load (avg)'), - 'unit': '%', - 'color': '26/a', -} -metric_info['checkpoint_asg_sg_counters_instances_load_min'] = { - 'title': _('Instances load (min)'), - 'unit': '%', - 'color': '32/a', -} -metric_info['checkpoint_asg_sg_counters_instances_load_max'] = { - 'title': _('Instances load (max)'), - 'unit': '%', - 'color': '16/a', -} - -metric_info['checkpoint_asg_sg_counters_nat_conn'] = { - 'title': _('NAT connections'), - 'unit': 'count', - 'color': '26/a', -} -metric_info['checkpoint_asg_sg_counters_nat_conn_rate'] = { - 'title': _('NAT Conn Rate'), - 'unit': '1/s', - 'color': '32/a', -} - -metric_info['checkpoint_asg_sg_counters_vpn_conn'] = { - 'title': _('VPN connections'), - 'unit': 'count', - 'color': '26/a', -} -metric_info['checkpoint_asg_sg_counters_vpn_throughput'] = { - 'title': _('VPN Throughput'), - 'unit': 'bytes/s', - 'color': '32/a', -} - -metric_info['checkpoint_asg_sg_counters_throughput'] = { - 'title': _('Throughput'), - 'unit': 'bytes/s', - 'color': '26/a', -} - -metric_info['checkpoint_asg_sg_counters_packet_rate'] = { - 'title': _('Packet Rate'), - 'unit': '1/s', - 'color': '26/a', -} - -graph_info['checkpoint_asg_sg_counters_connections'] = { - 'title': _('Check Point SG Concurrent Connections'), - 'metrics': [ - ('checkpoint_asg_sg_counters_non_accel_concurr_conn', 'line'), - ('checkpoint_asg_sg_counters_accel_concurr_conn', 'line'), - ('checkpoint_asg_sg_counters_concurr_conn', 'area'), - ], - 'range': (0, 'checkpoint_asg_sg_counters_concurr_conn:max'), -} - -graph_info['checkpoint_asg_sg_counters_connection_rate'] = { - 'title': _('Check Point SG Counter Connection Rate'), - 'metrics': [ - ('checkpoint_asg_sg_counters_non_accel_connection_rate', 'line'), - ('checkpoint_asg_sg_counters_accel_connection_rate', 'line'), - ('checkpoint_asg_sg_counters_connection_rate', 'area'), - ], - 'range': (0, 'checkpoint_asg_sg_counters_connection_rate:max'), -} - -graph_info['checkpoint_asg_sg_counters_accel_load'] = { - 'title': _('Check Point SG Counter Load'), - 'metrics': [ - ('checkpoint_asg_sg_counters_accel_load_min', 'line'), - ('checkpoint_asg_sg_counters_accel_load_avg', 'line'), - ('checkpoint_asg_sg_counters_accel_load_max', 'line'), - ('checkpoint_asg_sg_counters_load', 'area'), - ], - 'range': (0, 110), -} - -graph_info['checkpoint_asg_sg_counters_instances_load'] = { - 'title': _('Check Point SG Counter Instances Load'), - 'metrics': [ - ('checkpoint_asg_sg_counters_instances_load_min', 'line'), - ('checkpoint_asg_sg_counters_instances_load_avg', 'area'), - ('checkpoint_asg_sg_counters_instances_load_max', 'line'), - ], - 'range': (0, 110), -} - -graph_info['checkpoint_asg_sg_counters_nat_conn'] = { - 'title': _('Check Point SG Counter NAT connections'), - 'metrics': [ - ('checkpoint_asg_sg_counters_nat_conn', 'area'), - ], - 'range': (0, 'checkpoint_asg_sg_counters_nat_conn:max'), -} -graph_info['checkpoint_asg_sg_counters_nat_conn_rate'] = { - 'title': _('Check Point SG Counter NAT connection rate'), - 'metrics': [ - ('checkpoint_asg_sg_counters_nat_conn_rate', 'area'), - ], - 'range': (0, 'checkpoint_asg_sg_counters_nat_conn_rate:max'), -} - -graph_info['checkpoint_asg_sg_counters_vpn_conn'] = { - 'title': _('Check Point SG Counter VPN connections'), - 'metrics': [ - ('checkpoint_asg_sg_counters_vpn_conn', 'area'), - ], - 'range': (0, 'checkpoint_asg_sg_counters_vpn_conn:max'), -} -graph_info['checkpoint_asg_sg_counters_vpn_throughput'] = { - 'title': _('Check Point SGM Counter VPN Throughput'), - 'metrics': [ - ('checkpoint_asg_sg_counters_vpn_throughput', 'area'), - ], - 'range': (0, 'checkpoint_asg_sg_counters_vpn_throughput:max'), -} - -graph_info['checkpoint_asg_sg_counters_throughput'] = { - 'title': _('Check Point SG Counter Throughput'), - 'metrics': [ - ('checkpoint_asg_sg_counters_throughput', 'area'), - ], - 'range': (0, 'checkpoint_asg_sg_counters_throughput:max'), -} - -graph_info['checkpoint_asg_sg_counters_packet_rate'] = { - 'title': _('Check Point SG Counter Packet Rate'), - 'metrics': [ - ('checkpoint_asg_sg_counters_packet_rate', 'area'), - ], - 'range': (0, 'checkpoint_asg_sg_counters_packet_rate:max'), -} - - -perfometer_info.append(('stacked', [ - { - 'type': 'logarithmic', - 'metric': 'checkpoint_asg_sg_counters_accel_concurr_conn', - 'half_value': 100000.0, - 'exponent': 2, - }, - { - 'type': 'logarithmic', - 'metric': 'checkpoint_asg_sg_counters_non_accel_concurr_conn', - 'half_value': 100000.0, - 'exponent': 2, - }, -])) - -perfometer_info.append(('stacked', [ - { - 'type': 'logarithmic', - 'metric': 'checkpoint_asg_sg_counters_accel_connection_rate', - 'half_value': 10000.0, - 'exponent': 2, - }, - { - 'type': 'logarithmic', - 'metric': 'checkpoint_asg_sg_counters_non_accel_connection_rate', - 'half_value': 10000.0, - 'exponent': 2, - }, -])) - -perfometer_info.append({ - 'type': 'linear', - 'segments': ['checkpoint_asg_sg_counters_accel_load_avg'], - 'total': 100, -}) - -perfometer_info.append({ - 'type': 'linear', - 'segments': ['checkpoint_asg_sg_counters_instances_load_avg'], - 'total': 100, -}) - -perfometer_info.append(('stacked', [ - { - 'type': 'logarithmic', - 'metric': 'checkpoint_asg_sg_counters_nat_conn', - 'half_value': 10000.0, - 'exponent': 2, - }, - { - 'type': 'logarithmic', - 'metric': 'checkpoint_asg_sg_counters_nat_conn_rate', - 'half_value': 500.0, - 'exponent': 2, - }, -])) - -perfometer_info.append(('stacked', [ - { - 'type': 'logarithmic', - 'metric': 'checkpoint_asg_sg_counters_vpn_conn', - 'half_value': 500.0, - 'exponent': 2, - }, - { - 'type': 'logarithmic', - 'metric': 'checkpoint_asg_sg_counters_vpn_throughput', - 'half_value': 2592000.0, - 'exponent': 2, - }, -])) - -perfometer_info.append({ - 'type': 'logarithmic', - 'metric': 'checkpoint_asg_sg_counters_throughput', - 'half_value': 500.0, - 'exponent': 2, -}) - -perfometer_info.append({ - 'type': 'logarithmic', - 'metric': 'checkpoint_asg_sg_counters_packet_rate', - 'half_value': 100000.0, - 'exponent': 2, -})