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

Delete checkpoint_asg_sg_counters.py

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