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

update project

parent a2df23f4
No related branches found
No related tags found
No related merge requests found
......@@ -276,6 +276,6 @@ register.check_plugin(
check_default_parameters={
'not_found_state': 3, # default state for tunnel not found
'tunnels': [], # list of tunnel specific not found states ('<ip-address>', '<alias>', <state>)
'vpn_entry': {},
# 'vpn_entry': {},
},
)
No preview for this file type
......@@ -25,40 +25,48 @@ from cmk.gui.plugins.wato import (
def _parameter_valuespec_checkpoint_l2l_vpn():
return Dictionary(
elements=[
('not_found_state',
MonitoringState(
title=_('Default state to report when tunnel can not be found anymore'),
help=_('Default state if a tunnel, which is not listed above in this rule, '
'can no longer be found.'),
default_value=3,
)),
('tunnels',
ListOf(
Tuple(
title=_('VPN Tunnel Endpoints'),
elements=[
TextUnicode(
title=_('Peer object name'),
help=_('The configured value must match a tunnel reported by the monitored '
'device.'),
allow_empty=False,
),
TextUnicode(
title=_('Tunnel Alias'),
help=_('You can configure an individual alias here for the tunnel matching '
'the Name configured in the field above.'),
),
MonitoringState(
default_value=2,
title=_('State if tunnel is not found'),
)]),
add_label=_('Add tunnel'),
movable=False,
title=_('VPN tunnel specific configuration'),
)),
],
)
elements=[
('not_found_state',
MonitoringState(
title=_('Default state to report when tunnel can not be found anymore'),
help=_('Default state if a tunnel, which is not listed above in this rule, '
'can no longer be found.'),
default_value=3,
)),
('tunnels',
ListOf(
Tuple(
title=_('VPN Tunnel Endpoints'),
elements=[
TextUnicode(
title=_('Peer object name'),
help=_('The configured value must match a tunnel reported by the monitored '
'device.'),
allow_empty=False,
),
TextUnicode(
title=_('Tunnel Alias'),
help=_('You can configure an individual alias here for the tunnel matching '
'the Name configured in the field above.'),
),
MonitoringState(
default_value=2,
title=_('State if tunnel is not found'),
)]),
add_label=_('Add tunnel'),
movable=False,
title=_('VPN tunnel specific configuration'),
)),
('vpn_entry', # added by plugin discovery function
Dictionary(
elements=[
('l2lcommunity', TextUnicode()),
('l2lpeeripaddr', TextUnicode())
]
)),
],
hidden_keys=['vpn_entry'],
)
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