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

update project

parent 87abfac3
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,7 @@
# 2021-03-02: rewrite for CMK 2.0
# 2021-09-10: rewrite parse function
# 2021-0911: added WATO options
# 2023-05-30: moved gui files to ~/local/lib/chek_mk/gui/plugins/...
#
# sample snmpwalk (for one existing SGM)
# .1.3.6.1.4.1.2620.1.48.20.24.1.1.1.0 = Gauge32: 1
......
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_path_distribution_acceleration'] = {
'title': _('Accelerated'),
'unit': 'count',
'color': '26/a',
}
metric_info['checkpoint_asg_path_distribution_medium'] = {
'title': _('Medium'),
'unit': 'count',
'color': '32/a',
}
metric_info['checkpoint_asg_path_distribution_firewall'] = {
'title': _('Firewall'),
'unit': 'count',
'color': '23/a',
}
metric_info['checkpoint_asg_path_distribution_dropped'] = {
'title': _('Dropped'),
'unit': 'count',
'color': '14/a',
}
graph_info['checkpoint_asg_path_distribution'] = {
'title': _('Check Point Path Distribution'),
'metrics': [
('checkpoint_asg_path_distribution_dropped', 'stack'),
('checkpoint_asg_path_distribution_firewall', 'stack'),
('checkpoint_asg_path_distribution_medium', 'stack'),
('checkpoint_asg_path_distribution_acceleration', 'stack'),
],
}
perfometer_info.append({
'type': 'linear',
'segments': [
'checkpoint_asg_path_distribution_acceleration',
'checkpoint_asg_path_distribution_medium',
'checkpoint_asg_path_distribution_firewall',
'checkpoint_asg_path_distribution_dropped',
],
# 'total': 100.0,
})
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
#
from cmk.gui.i18n import _
from cmk.gui.valuespec import (
Dictionary,
TextAscii,
Tuple,
Integer,
)
from cmk.gui.plugins.wato.utils import (
CheckParameterRulespecWithItem,
rulespec_registry,
RulespecGroupCheckParametersNetworking,
)
def _parameter_valuespec_checkpoint_asg_path_distribution():
return Dictionary(elements=[
('levels_upper_acceleration',
Tuple(
title=_('Maximum Acceleration path counter'),
elements=[
Integer(title=_('Warning at'), minvalue=0,),
Integer(title=_('Critical at'), minvalue=0,),
])),
('levels_lower_acceleration',
Tuple(
title=_('Minimum Acceleration path counter'),
elements=[
Integer(title=_('Warning blow'), minvalue=0, ),
Integer(title=_('Critical below'), minvalue=0,),
])),
('levels_upper_medium',
Tuple(
title=_('Maximum Medium path counter'),
elements=[
Integer(title=_('Warning at'), minvalue=0, ),
Integer(title=_('Critical at'), minvalue=0, ),
])),
('levels_lower_medium',
Tuple(
title=_('Minimum Medium path counter'),
elements=[
Integer(title=_('Warning blow'), minvalue=0, ),
Integer(title=_('Critical below'), minvalue=0, ),
])),
('levels_upper_firewall',
Tuple(
title=_('Maximum Firewall path counter'),
elements=[
Integer(title=_('Warning at'), minvalue=0, ),
Integer(title=_('Critical at'), minvalue=0, ),
])),
('levels_lower_firewall',
Tuple(
title=_('Minimum Firewall path counter'),
elements=[
Integer(title=_('Warning blow'), minvalue=0, ),
Integer(title=_('Critical below'), minvalue=0, ),
])),
('levels_upper_dropped',
Tuple(
title=_('Maximum Dropped counter'),
elements=[
Integer(title=_('Warning at'), minvalue=0, ),
Integer(title=_('Critical at'), minvalue=0, ),
])),
('levels_lower_dropped',
Tuple(
title=_('Minimum Dropped counter'),
elements=[
Integer(title=_('Warning blow'), minvalue=0, ),
Integer(title=_('Critical below'), minvalue=0, ),
])),
])
rulespec_registry.register(
CheckParameterRulespecWithItem(
check_group_name='checkpoint_asg_path_distribution',
group=RulespecGroupCheckParametersNetworking,
match_type='dict',
parameter_valuespec=_parameter_valuespec_checkpoint_asg_path_distribution,
title=lambda: _('Check Point ASG path distribution'),
item_spec=lambda: TextAscii(title=_('Counter name'), ),
))
......@@ -4,13 +4,11 @@
' - 2021-03-02: rewritten for CMK 2.0\n',
'download_url': 'http://thl-cmk.hopto.org/',
'files': {'agent_based': ['checkpoint_asg_path_distribution.py'],
'checkman': ['checkpoint_asg_path_distribution'],
'web': ['plugins/metrics/checkpoint_asg_path_distribution.py',
'plugins/wato/checkpoint_asg_path_distribution.py']},
'gui': ['metrics/checkpoint_asg_path_distribution.py',
'wato/checkpoint_asg_path_distribution.py']},
'name': 'checkpoint_asg_path_distribution',
'num_files': 4,
'title': 'Check Point Maestro SMO path distribution 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