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

update project

parent 7219d160
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,7 @@
# 2021-03-03: fixed date/time in parse function
# 2021-09-10: fixed duplicate detail output
# 2021-09-29: renamed checkpoint_asg_diag to checkpoint_asg_sg_diag
# 2023-05-30: moved gui files to ~/local/lib/chek_mk/gui/plugins/...
#
# sample snmpwalk for one passed asg test
# .1.3.6.1.4.1.2620.1.48.31.1.1.1.21.0 = Wrong Type (should be OCTET STRING): Gauge32: 21
......
File added
No preview for this file type
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
#
from cmk.gui.i18n import _
from cmk.gui.valuespec import (
Dictionary,
Integer,
ListOfStrings,
Tuple,
)
from cmk.gui.plugins.wato.utils import (
CheckParameterRulespecWithItem,
rulespec_registry,
RulespecGroupCheckParametersNetworking,
)
def _parameter_valuespec_checkpoint_asg_sg_diag():
return Dictionary(elements=[
('levels_upper_last_run',
Tuple(
title=_('Maximum days no run "asg diag verify"'),
elements=[
Integer(
title=_('Warning at'),
unit='days',
default_value=3,
minvalue=1,
),
Integer(
title=_('Critical at'),
unit='days',
default_value=5,
minvalue=1,
)
],
)),
('asg_diag_ignore',
ListOfStrings(
title=_('Index list of ignored failde tests'),
orientation='horizontal',
allow_empty=False,
valuespec=Integer(minvalue=1, maxvalue=99),
help=_('This tests will be ignored if the are not "Passed". The monitoring state will stay OK'),
)),
('asg_diag_warning',
ListOfStrings(
title=_('Indix list of WARNING only failed tests'),
orientation='horizontal',
allow_empty=False,
valuespec=Integer(minvalue=1, maxvalue=99),
help=_('For this tests the monitoring state will be WARNING if the test result is not "Passed", '
'all other failed tests set the monitoring state to CRITICAL.'),
)),
])
rulespec_registry.register(
CheckParameterRulespecWithItem(
check_group_name='checkpoint_asg_sg_diag',
group=RulespecGroupCheckParametersNetworking,
match_type='dict',
parameter_valuespec=_parameter_valuespec_checkpoint_asg_sg_diag,
title=lambda: _('Check Point ASG Diag'),
))
......@@ -3,11 +3,10 @@
'\n',
'download_url': 'http://thl-cmk.hopto.org/',
'files': {'agent_based': ['checkpoint_asg_sg_diag.py'],
'web': ['plugins/wato/checkpoint_asg_sg_diag.py']},
'gui': ['wato/checkpoint_asg_sg_diag.py']},
'name': 'checkpoint_asg_sg_diag',
'num_files': 2,
'title': 'Check Point Maestro SG ASG Diag',
'version': '20210929.v0.3',
'version.min_required': '2.0.0',
'version.packaged': '2021.09.20',
'version': '0.4.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