diff --git a/agent_based/checkpoint_securexl.py b/agent_based/checkpoint_securexl.py index fc69fa1bf58d8c96638e43b18c1ae07638b497d8..a962268fe960be95868050e061e020408ec95c66 100644 --- a/agent_based/checkpoint_securexl.py +++ b/agent_based/checkpoint_securexl.py @@ -12,6 +12,7 @@ # 2020-06-08: changed snmp-scan function # renamed from checkpoint_securexl_status to checkpoint_securexl # 2021-08-26: rewritten for CMK 2.0 +# 2023-05-29: moved gui files to ~/local/lib/check_mk/gui/plugins/... # # snmpwalk sample # diff --git a/checkpoint_securexl-0.2.0-20230529.mkp b/checkpoint_securexl-0.2.0-20230529.mkp new file mode 100644 index 0000000000000000000000000000000000000000..63264fe28fc457485c517faca47381733fa6e7d4 Binary files /dev/null and b/checkpoint_securexl-0.2.0-20230529.mkp differ diff --git a/checkpoint_securexl.mkp b/checkpoint_securexl.mkp index f334cea08245a35c5179c5011e2f3cedcd4c0473..63264fe28fc457485c517faca47381733fa6e7d4 100644 Binary files a/checkpoint_securexl.mkp and b/checkpoint_securexl.mkp differ diff --git a/gui/metrics/checkpoint_securexl.py b/gui/metrics/checkpoint_securexl.py new file mode 100644 index 0000000000000000000000000000000000000000..dd8e9ee8605ea9db9575f5cda3dc7b89deb219de --- /dev/null +++ b/gui/metrics/checkpoint_securexl.py @@ -0,0 +1,58 @@ +#!/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-14 +# +# Check Point SecureXL staus metrics plugin +# checkpoint_securexl +# +from cmk.gui.i18n import _ + +from cmk.gui.plugins.metrics.utils import ( + metric_info, + graph_info, + perfometer_info, +) + +metric_info['checkpoint_securexl_active'] = { + 'title': _('Connections active'), + 'unit': 'count', + 'color': '26/a', +} +metric_info['checkpoint_securexl_added'] = { + 'title': _('Connections added'), + 'unit': '1/s', + 'color': '21/a', +} +metric_info['checkpoint_securexl_deleted'] = { + 'title': _('Connections deleted'), + 'unit': '1/s', + 'color': '31/a', +} + +graph_info['checkpoint_securexl_connections_active'] = { + 'title': _('Check Point SecureXL Connections active'), + 'metrics': [ + ('checkpoint_securexl_active', 'area'), + + ], +} + +graph_info['checkpoint_securexl_connections_rate'] = { + 'title': _('Check Point SecureXL Connections added/deleted'), + 'metrics': [ + ('checkpoint_securexl_deleted', '-area'), + ('checkpoint_securexl_added', 'area'), + ], +} + +perfometer_info.append({ + 'type': 'logarithmic', + 'metric': 'checkpoint_securexl_active', + 'half_value': 2000.0, + 'exponent': 2, +}, ) diff --git a/packages/checkpoint_securexl b/packages/checkpoint_securexl index 713614a5682844c955cf7c2ac1f6b102b030c99a..4f6c3bdf0840367a9f94d7c9ffd8e2059304def2 100644 --- a/packages/checkpoint_securexl +++ b/packages/checkpoint_securexl @@ -4,11 +4,10 @@ 'Warning if status not enabled\n', 'download_url': 'https://thl-cmk.hopto.org', 'files': {'agent_based': ['checkpoint_securexl.py'], - 'web': ['plugins/metrics/checkpoint_securexl.py']}, + 'gui': ['metrics/checkpoint_securexl.py']}, 'name': 'checkpoint_securexl', - 'num_files': 2, 'title': 'Check Point SecureXL status', - 'version': '20210826.v.0.0.3', - 'version.min_required': '2.0.0', - 'version.packaged': '2021.09.20', + 'version': '0.2.0-20230529', + 'version.min_required': '2.1.0b1', + 'version.packaged': '2.1.0p21', 'version.usable_until': None} \ No newline at end of file