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

update project

parent a798e48e
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,7 @@
# 2021-09-10: changed render function to networkbandwidth
# 2021-09-11: added WTO options
# 2022-10-23: fixed warning on upgrade "non-empty params vanished" for asgNetIfSpeed
# 2023-05-30: moved gui files to ~/local/lib/chek_mk/gui/plugins/...
#
# sample snmpwalk (for one interface)
......
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,
TextAscii,
MonitoringState,
)
from cmk.gui.plugins.wato.utils import (
CheckParameterRulespecWithItem,
rulespec_registry,
RulespecGroupCheckParametersNetworking,
)
def _parameter_valuespec_checkpoint_asg_interface():
return Dictionary(
elements=[
('state_not_full_duplex',
MonitoringState(
default_value=2,
title=_('State if not Full duplex'),
help=_('Monitoring state if interface not in Full duplex state'),
)),
('state_not_up_up',
MonitoringState(
default_value=2,
title=_('State if not Up/Up'),
help=_('Monitoring state if interface not in Up/Up state'),
)),
('state_speed_changed',
MonitoringState(
default_value=1,
title=_('State if speed changed'),
help=_('Monitoring state if interface is differs from discovery time'),
)),
('asgNetIfSpeed', TextAscii()), # added by plugin discovery function
],
hidden_keys=['asgNetIfSpeed']
)
rulespec_registry.register(
CheckParameterRulespecWithItem(
check_group_name='checkpoint_asg_interface',
group=RulespecGroupCheckParametersNetworking,
match_type='dict',
parameter_valuespec=_parameter_valuespec_checkpoint_asg_interface,
title=lambda: _('Check Point ASG Interface'),
item_spec=lambda: TextAscii(title=_('Interface name'), ),
))
......@@ -4,12 +4,10 @@
' - 2021-03-03: rewrite for CMK 2.x\n',
'download_url': 'http://thl-cmk.hopto.org/',
'files': {'agent_based': ['checkpoint_asg_interface.py'],
'checkman': ['checkpoint_asg_interface'],
'web': ['plugins/wato/checkpoint_asg_interface.py']},
'gui': ['wato/checkpoint_asg_interface.py']},
'name': 'checkpoint_asg_interface',
'num_files': 3,
'title': 'Check Point Maestro SMO interfaces',
'version': '201023.v0.2a',
'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