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

update project

parent 805868c4
No related branches found
No related tags found
No related merge requests found
File added
No preview for this file type
...@@ -12,6 +12,8 @@ ...@@ -12,6 +12,8 @@
# #
# 2023-03-04: moved metrics file from ~/local/share/check_mk/... to ~/local/lib/check_mk/... # 2023-03-04: moved metrics file from ~/local/share/check_mk/... to ~/local/lib/check_mk/...
# added predictive metrics # added predictive metrics
# 2023-05-29: added wato dummy for checkpoint_connections
#
from cmk.gui.i18n import _ from cmk.gui.i18n import _
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
# 2023-03-04: moved wato file from ~/local/share/check_mk/... to ~/local/lib/check_mk/... # 2023-03-04: moved wato file from ~/local/share/check_mk/... to ~/local/lib/check_mk/...
# fix: CheckParameterRulespecWithItem -> CheckParameterRulespecWithoutItem # fix: CheckParameterRulespecWithItem -> CheckParameterRulespecWithoutItem
# changed levels_upper_absolute/levels_upper_relative from Tuple to Levels for predictive monitoring # changed levels_upper_absolute/levels_upper_relative from Tuple to Levels for predictive monitoring
# # 2023-05-29: added dummy for checkpoint_connections
from cmk.gui.i18n import _ from cmk.gui.i18n import _
from cmk.gui.valuespec import ( from cmk.gui.valuespec import (
...@@ -18,11 +18,13 @@ from cmk.gui.valuespec import ( ...@@ -18,11 +18,13 @@ from cmk.gui.valuespec import (
Tuple, Tuple,
Integer, Integer,
Percentage, Percentage,
FixedValue,
) )
from cmk.gui.plugins.wato.utils import ( from cmk.gui.plugins.wato.utils import (
CheckParameterRulespecWithoutItem, CheckParameterRulespecWithoutItem,
rulespec_registry, rulespec_registry,
RulespecGroupCheckParametersNetworking, RulespecGroupCheckParametersNetworking,
RulespecGroupCheckParametersApplications,
Levels, Levels,
) )
...@@ -89,3 +91,51 @@ rulespec_registry.register( ...@@ -89,3 +91,51 @@ rulespec_registry.register(
parameter_valuespec=_parameter_valuespec_checkpoint_fw_connections, parameter_valuespec=_parameter_valuespec_checkpoint_fw_connections,
title=lambda: _('Check Point Firewall Connections'), title=lambda: _('Check Point Firewall Connections'),
)) ))
def _parameter_valuespec_checkpoint_connections():
return Dictionary(
[
('non_value',
FixedValue(
title=_('This rule set is superseded by "Check Point Firewall Connections".'),
value=False,
totext='',
))
# (
# "levels",
# Tuple(
# help=_(
# "This rule sets limits to the current number of connections through "
# "a Checkpoint firewall."
# ),
# title=_("Maximum number of firewall connections"),
# elements=[
# Integer(
# title=_("Warning at"),
# minvalue=0,
# default_value=40000,
# unit=_("connections"),
# ),
# Integer(
# title=_("Critical at"),
# minvalue=0,
# default_value=50000,
# unit=_("connections"),
# ),
# ],
# ),
# ),
],
optional_keys=False,
)
rulespec_registry.register(
CheckParameterRulespecWithoutItem(
check_group_name="checkpoint_connections",
group=RulespecGroupCheckParametersApplications,
parameter_valuespec=_parameter_valuespec_checkpoint_connections,
title=lambda: _("Checkpoint Firewall Connections"),
)
)
...@@ -22,14 +22,17 @@ ...@@ -22,14 +22,17 @@
' - Upper/Lower levels for current connections (absolute)\n' ' - Upper/Lower levels for current connections (absolute)\n'
' - Upper/Lower levels for current connections (relative to ' ' - Upper/Lower levels for current connections (relative to '
'connection table limit)\n' 'connection table limit)\n'
' - Admin connection table limit\n', ' - Admin connection table limit\n'
'\n'
' Note: Upper levels can be configured as predictive. This '
'will ignore the lower levels.\n',
'download_url': 'https://thl-cmk.hopto.org', 'download_url': 'https://thl-cmk.hopto.org',
'files': {'agent_based': ['checkpoint_fw_connections.py'], 'files': {'agent_based': ['checkpoint_fw_connections.py'],
'gui': ['metrics/checkpoint_fw_connections.py', 'gui': ['metrics/checkpoint_fw_connections.py',
'wato/checkpoint_fw_connections.py']}, 'wato/checkpoint_fw_connections.py']},
'name': 'checkpoint_fw_connections', 'name': 'checkpoint_fw_connections',
'title': 'Check Point Connections', 'title': 'Check Point Connections',
'version': '0.0.4-20230303', 'version': '0.0.5-20230529',
'version.min_required': '2.1.0b1', 'version.min_required': '2.1.0b1',
'version.packaged': '2.1.0p21', 'version.packaged': '2.1.0p21',
'version.usable_until': None} '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