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

update project

parent bc95b8bb
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@
#
# Monitor Check Point MHO ports
#
#
# 2022-10-23: fixed warning on upgrade "non-empty params vanished" for discovery_speed
#
# sample snmpwalk
#
......@@ -263,6 +263,7 @@ register.check_plugin(
'state_admin_down': 1,
'state_link_down': 2,
'state_speed_changed': 1,
# 'discovery_speed': '',
},
check_ruleset_name='checkpoint_mho_ports',
)
No preview for this file type
......@@ -9,7 +9,7 @@
'name': 'checkpoint_mho_ports',
'num_files': 3,
'title': 'Check Point MHO Ports',
'version': '201129.v0.0.1',
'version': '20221023.v0.0.1a',
'version.min_required': '2.0.0',
'version.packaged': '2021.09.20',
'version.usable_until': None}
\ No newline at end of file
......@@ -13,6 +13,7 @@ from cmk.gui.valuespec import (
TextAscii,
MonitoringState,
FixedValue,
TextUnicode,
)
from cmk.gui.plugins.wato import (
......@@ -26,27 +27,29 @@ from cmk.gui.plugins.wato import (
def _parameter_valuespec_checkpoint_mho_ports():
return Dictionary(
elements=[
('state_admin_down',
MonitoringState(
title=_('State if port is Admin down'),
help=_('Monitoring state if port is Admin down'),
default_value=1,
)),
('state_link_down',
MonitoringState(
title=_('State if port Link state is down'),
help=_('Monitoring state if port link state is down'),
default_value=2,
)),
('state_speed_changed',
MonitoringState(
title=_('State if port speed has changed'),
help=_('Monitoring state if port speed has changed from discovery'),
default_value=1,
)),
],
)
elements=[
('state_admin_down',
MonitoringState(
title=_('State if port is Admin down'),
help=_('Monitoring state if port is Admin down'),
default_value=1,
)),
('state_link_down',
MonitoringState(
title=_('State if port Link state is down'),
help=_('Monitoring state if port link state is down'),
default_value=2,
)),
('state_speed_changed',
MonitoringState(
title=_('State if port speed has changed'),
help=_('Monitoring state if port speed has changed from discovery'),
default_value=1,
)),
('discovery_speed', TextUnicode()), # added by plugin discovery function
],
hidden_keys=['discovery_speed']
)
rulespec_registry.register(
......
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