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

update project

parent 97c15a12
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,7 @@
# 2021-09-24: changed graph definition for connections graph to make it scale with
# the active connections (suggested by raulcurro[at]gmail[dot]com)
# moved Main IP to details, if it is not an IPv4 address
# 2022-10-23: fixed warning on upgrade "non-empty params vanished" for policyname and ha_state
#
# snmpwalk sample
#
......@@ -315,6 +316,10 @@ register.check_plugin(
'state_policy_not_installed': 2,
'state_policy_changed': 1,
'state_ha_changed': 1,
# 'levels_upper_absolute': (None, None),
# 'levels_lower_absolute': (None, None),
# 'policyname': '',
# 'ha_state': None,
},
check_ruleset_name='checkpoint_vsx_system',
)
No preview for this file type
......@@ -2,20 +2,23 @@
'description': 'Monitor status of virtual systems in Check Point vsx/vsls '
'cluster.\n'
'\n'
' - creates one check for every virtual system. \n'
' - creates one check for each virtual system. \n'
' - check goes critical if virtual system status is not '
"'Active' or 'Standby'\n"
' - longoutput gives details for each virtual system.\n'
' - long output gives details for each virtual system.\n'
' - monitors VSX virtual system counters '
'(connections/packets/bytes/logs).\n',
'download_url': 'https://thl-cmk.hopto.org',
'(connections/packets/bytes/logs).\n'
' - supersedes checkpoint_vsx, checkpoint_vsx_connections, '
'checkpoint_vsx_traffic, checkpoint_vsx_packets and '
'checkpoint_vsx_status\n',
'download_url': 'https://thl-cmk.hopto.org/gitlab/checkmk/check-point/gateway/checkpoint_vsx_system',
'files': {'agent_based': ['checkpoint_vsx_system.py'],
'web': ['plugins/metrics/checkpoint_vsx_system.py',
'plugins/wato/checkpoint_vsx_system.py']},
'name': 'checkpoint_vsx_system',
'num_files': 3,
'title': 'Check Point VSX system status and counter',
'version': '20210924.v.0.3b',
'version': '20221023.v.0.3c',
'version.min_required': '2.0.0',
'version.packaged': '2021.09.20',
'version.usable_until': None}
\ No newline at end of file
......@@ -15,6 +15,7 @@ from cmk.gui.valuespec import (
Integer,
MonitoringState,
ListChoice,
TextUnicode,
)
from cmk.gui.plugins.wato import (
......@@ -28,57 +29,62 @@ from cmk.gui.plugins.wato import (
def _parameter_valuespec_checkpoint_vsx_system():
return Dictionary(
elements=[
('levels_upper_absolute',
Tuple(
title=_('Maximum number of firewall connections'),
help=_('This rule sets upper limits to the current number of connections through '
'a Checkpoint firewall.'),
elements=[
Integer(title=_('Warning at'), minvalue=0, unit=_('connections')),
Integer(title=_('Critical at'), minvalue=0, unit=_('connections')),
])),
('levels_lower_absolute',
Tuple(
title=_('Minimum number of firewall connections'),
help=_('This rule sets lower limits to the current number of connections through '
'a Checkpoint firewall.'),
elements=[
Integer(title=_('Warning blow'), minvalue=0, unit=_('connections')),
Integer(title=_('Critical below'), minvalue=0, unit=_('connections')),
])),
('state_sic_not_established',
MonitoringState(
title=_('State if SIC is not established'),
help=_('Monitoring state if SIC is not established'),
default_value=2,
)),
('state_ha_not_act_stb',
MonitoringState(
title=_('State if H/A state not active/standby'),
help=_('Monitoring state if H/A state not active or standby'),
default_value=2,
)),
('state_policy_not_installed',
MonitoringState(
title=_('State if no policy is installed'),
help=_('Monitoring state if no policy is installed'),
default_value=2,
)),
('state_policy_changed',
MonitoringState(
title=_('State on policy name change'),
help=_('Monitoring status on policy name change'),
default_value=1,
)),
('state_ha_changed',
MonitoringState(
title=_('State on H/A state change'),
help=_('Monitoring status on H/A state change'),
default_value=1,
)),
],
)
elements=[
('levels_upper_absolute',
Tuple(
title=_('Maximum number of firewall connections'),
help=_('This rule sets upper limits to the current number of connections through '
'a Checkpoint firewall.'),
elements=[
Integer(title=_('Warning at'), minvalue=0, unit=_('connections')),
Integer(title=_('Critical at'), minvalue=0, unit=_('connections')),
])),
('levels_lower_absolute',
Tuple(
title=_('Minimum number of firewall connections'),
help=_('This rule sets lower limits to the current number of connections through '
'a Checkpoint firewall.'),
elements=[
Integer(title=_('Warning blow'), minvalue=0, unit=_('connections')),
Integer(title=_('Critical below'), minvalue=0, unit=_('connections')),
])),
('state_sic_not_established',
MonitoringState(
title=_('State if SIC is not established'),
help=_('Monitoring state if SIC is not established'),
default_value=2,
)),
('state_ha_not_act_stb',
MonitoringState(
title=_('State if H/A state not active/standby'),
help=_('Monitoring state if H/A state not active or standby'),
default_value=2,
)),
('state_policy_not_installed',
MonitoringState(
title=_('State if no policy is installed'),
help=_('Monitoring state if no policy is installed'),
default_value=2,
)),
('state_policy_changed',
MonitoringState(
title=_('State on policy name change'),
help=_('Monitoring status on policy name change'),
default_value=1,
)),
('state_ha_changed',
MonitoringState(
title=_('State on H/A state change'),
help=_('Monitoring status on H/A state change'),
default_value=1,
)),
('policyname', # added by plugin discovery function
TextUnicode()),
('ha_state', # added by plugin discovery function
TextUnicode()),
],
hidden_keys=['policyname', 'ha_state'],
)
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