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

update project

parent 5af45a45
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,7 @@
#
# 2021-09-10: rewrtitten for CMK 2.0
# 2021-09-11: added metrics
# 2023-05-30: moved gui files to ~/local/lib/chek_mk/gui/plugins/...
#
# ToDo: add WATO options
#
......
File added
No preview for this file type
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
from cmk.gui.i18n import _
from cmk.gui.plugins.metrics.utils 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,
})
......@@ -2,11 +2,10 @@
'description': 'Monitor Check Point Maestro SMO counters\n',
'download_url': 'http://thl-cmk.hopto.org/',
'files': {'agent_based': ['checkpoint_asg_counters.py'],
'web': ['plugins/metrics/checkpoint_asg_counters.py']},
'gui': ['metrics/checkpoint_asg_sg_counters.py']},
'name': 'checkpoint_asg_counters',
'num_files': 2,
'title': 'Check Point Maestro SMO counters',
'version': '20210910.v0.2',
'version.min_required': '2.0.0',
'version.packaged': '2021.09.20',
'version': '0.3.0-20230530',
'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