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

update project

parent 306b0912
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,7 @@
# 2019-09-23: parameter discovery
# 2020-06-08: changed snmp-scan function
# 2021-08-11: rewritten for CMK 2.0
# 2023-05-29: moved gui files to ~/local/lib/check_mk/gui/plugins/...
#
# sample snmpwalk
#
......
File added
No preview for this file type
#!/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 : 2021-08-11
#
# Check Point Internal CA metrics plugin
#
from cmk.gui.i18n import _
from cmk.gui.plugins.metrics.utils import (
metric_info,
graph_info,
perfometer_info,
)
metric_info['checkpoint_ica_icavalidcertificates'] = {
'title': _('Valid certificates'),
'unit': 'count',
'color': '16/a',
}
metric_info['checkpoint_ica_icatotalnumberofcertificates'] = {
'title': _('Total certificates'),
'unit': 'count',
'color': '26/a',
}
metric_info['checkpoint_ica_icapendingcertificates'] = {
'title': _('Pending certificates'),
'unit': 'count',
'color': '11/a',
}
metric_info['checkpoint_ica_icarevokedcertificates'] = {
'title': _('Revoked certificates'),
'unit': 'count',
'color': '21/a',
}
metric_info['checkpoint_ica_icatotalcertificatesofusers'] = {
'title': _('Certificates of users'),
'unit': 'count',
'color': '31/a',
}
metric_info['checkpoint_ica_icacertificatesofldapusers'] = {
'title': _('Certificates of LDAP users'),
'unit': 'count',
'color': '41/a',
}
metric_info['checkpoint_ica_icacertificatesofinternalusers'] = {
'title': _('Certificates of internal users'),
'unit': 'count',
'color': '12/a',
}
metric_info['checkpoint_ica_icatotalnumberofsiccertificates'] = {
'title': _('SIC certificates'),
'unit': 'count',
'color': '22/a',
}
metric_info['checkpoint_ica_icatotalnumberofikecertificates'] = {
'title': _('IKE certificates'),
'unit': 'count',
'color': '32/a',
}
metric_info['checkpoint_ica_icarenewedcertificates'] = {
'title': _('Renewed Certificates'),
'unit': 'count',
'color': '42/a',
}
metric_info['checkpoint_ica_icaexpieredcertificates'] = {
'title': _('Expired Certificates'),
'unit': 'count',
'color': '13/a',
}
metric_info['checkpoint_ica_icaLastCrlDistributionPoint'] = {
'title': _('Last Crl Distribution Point'),
'unit': 'count',
'color': '23/a',
}
graph_info['checkpoint_ica_topology_table_routes'] = {
'title': _('Routes by origin type'),
'metrics': [
('checkpoint_ica_icatotalnumberofcertificates', 'line'),
('checkpoint_ica_icavalidcertificates', 'line'),
('checkpoint_ica_icapendingcertificates', 'line'),
('checkpoint_ica_icarevokedcertificates', 'line'),
('checkpoint_ica_icatotalcertificatesofusers', 'line'),
('checkpoint_ica_icacertificatesofldapusers', 'line'),
('checkpoint_ica_icacertificatesofinternalusers', 'line'),
('checkpoint_ica_icatotalnumberofsiccertificates', 'line'),
('checkpoint_ica_icatotalnumberofikecertificates', 'line'),
('checkpoint_ica_icarenewedcertificates', 'line'),
('checkpoint_ica_icaexpieredcertificates', 'line'),
('checkpoint_ica_icaLastCrlDistributionPoint', 'line'),
],
'range': (0, 'checkpoint_ica_icatotalnumberofcertificates:max')
}
perfometer_info.append(('stacked', [
{
'type': 'logarithmic',
'metric': 'checkpoint_ica_icatotalnumberofcertificates',
'half_value': 500.0,
'exponent': 2,
},
{
'type': 'logarithmic',
'metric': 'checkpoint_ica_icavalidcertificates',
'half_value': 500.0,
'exponent': 2,
}
]))
......@@ -8,11 +8,10 @@
' - state: always ok\n',
'download_url': 'https://thl-cmk.hopto.org',
'files': {'agent_based': ['checkpoint_ica.py'],
'web': ['plugins/metrics/checkpoint_ica.py']},
'gui': ['metrics/checkpoint_ica.py']},
'name': 'checkpoint_internal_ca',
'num_files': 2,
'title': 'Check Point Internal CA',
'version': '20210811.v0.0.2_alpha',
'version.min_required': '2.0.0',
'version.packaged': '2021.09.20',
'version': '0.0.3-20230529',
'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