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

update project

parent 167889d9
No related branches found
No related tags found
No related merge requests found
No preview for this file type
......@@ -6,9 +6,10 @@
'files': {'agent_based': ['checkpoint_fw_ls.py', 'checkpoint_fwm_ls.py'],
'checkman': ['checkpoint_fw_ls', 'checkpoint_fwm_ls'],
'web': ['plugins/metrics/checkpoint_fw_log.py',
'plugins/wato/checkpoint_fwm_ls.py']},
'plugins/wato/checkpoint_fwm_ls.py',
'plugins/wato/checkpoint_fw_ls.py']},
'name': 'checkpoint_log_server',
'num_files': 6,
'num_files': 7,
'title': 'Check Point Log service status',
'version': '20210614.v0.2',
'version.min_required': '2.0.0',
......
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# License: GNU General Public License v2
#
# Author: thl-cmk[at]outlook[dot]com
# URL : https://thl-cmk.hopto.org
#
from cmk.gui.i18n import _
from cmk.gui.valuespec import (
Dictionary,
TextAscii,
FixedValue,
MonitoringState,
DropdownChoice,
)
from cmk.gui.plugins.wato import (
CheckParameterRulespecWithItem,
rulespec_registry,
RulespecGroupCheckParametersNetworking,
)
def _parameter_valuespec_checkpoint_fw_ls():
return Dictionary(elements=[
('exp_connection_status',
DropdownChoice(
title=_('Expected connection status for the log server'),
choices=[
('Backup Log-Server Not Active', _('Backup: The log server is a backup log server')),
('Log-Server Connected', _('Connected: The gateway is connected to the log server')),
('Log-Server Disconnected', _('Disconnected: The gateway is not connected to the log server')),
],
default_value='Log-Server Connected',
)),
('mon_connection_state',
MonitoringState(
default_value=1,
title=_('State if connection state differs from expected state.'),
help=_('')
)),
])
rulespec_registry.register(
CheckParameterRulespecWithItem(
check_group_name='checkpoint_fw_ls',
group=RulespecGroupCheckParametersNetworking,
item_spec=lambda: TextAscii(title=_('Check Point Firewall gateway log server'), ),
match_type='dict',
parameter_valuespec=_parameter_valuespec_checkpoint_fw_ls,
title=lambda: _('Check Point Firewall gateway log server'),
))
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