diff --git a/checkpoint_fw_connections-0.0.5-20230529.mkp b/checkpoint_fw_connections-0.0.5-20230529.mkp new file mode 100644 index 0000000000000000000000000000000000000000..3dce497d61b629cb0d5770340d53e6eae46f4115 Binary files /dev/null and b/checkpoint_fw_connections-0.0.5-20230529.mkp differ diff --git a/checkpoint_fw_connections.mkp b/checkpoint_fw_connections.mkp index df048205bd0d6c411fdbc50501ff7173f2d0c241..3dce497d61b629cb0d5770340d53e6eae46f4115 100644 Binary files a/checkpoint_fw_connections.mkp and b/checkpoint_fw_connections.mkp differ diff --git a/gui/metrics/checkpoint_fw_connections.py b/gui/metrics/checkpoint_fw_connections.py index 9800ac807553ac7aabdfc19ec360a1870b45d045..09ba81106be87880122353d1de5c17fd69153011 100644 --- a/gui/metrics/checkpoint_fw_connections.py +++ b/gui/metrics/checkpoint_fw_connections.py @@ -12,6 +12,8 @@ # # 2023-03-04: moved metrics file from ~/local/share/check_mk/... to ~/local/lib/check_mk/... # added predictive metrics +# 2023-05-29: added wato dummy for checkpoint_connections +# from cmk.gui.i18n import _ diff --git a/gui/wato/checkpoint_fw_connections.py b/gui/wato/checkpoint_fw_connections.py index a1bf4737041f8e295c9687ab19cce54287828048..1bbee8962110455eab78a72d891f03a92b2542ca 100644 --- a/gui/wato/checkpoint_fw_connections.py +++ b/gui/wato/checkpoint_fw_connections.py @@ -10,7 +10,7 @@ # 2023-03-04: moved wato file from ~/local/share/check_mk/... to ~/local/lib/check_mk/... # fix: CheckParameterRulespecWithItem -> CheckParameterRulespecWithoutItem # 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.valuespec import ( @@ -18,11 +18,13 @@ from cmk.gui.valuespec import ( Tuple, Integer, Percentage, + FixedValue, ) from cmk.gui.plugins.wato.utils import ( CheckParameterRulespecWithoutItem, rulespec_registry, RulespecGroupCheckParametersNetworking, + RulespecGroupCheckParametersApplications, Levels, ) @@ -89,3 +91,51 @@ rulespec_registry.register( parameter_valuespec=_parameter_valuespec_checkpoint_fw_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"), + ) +) diff --git a/packages/checkpoint_fw_connections b/packages/checkpoint_fw_connections index 347d689289b9e0c843e182a729872cb9b2548172..73abe0c2f668eb83b7af381a2eba009f9d011496 100644 --- a/packages/checkpoint_fw_connections +++ b/packages/checkpoint_fw_connections @@ -22,14 +22,17 @@ ' - Upper/Lower levels for current connections (absolute)\n' ' - Upper/Lower levels for current connections (relative to ' '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', 'files': {'agent_based': ['checkpoint_fw_connections.py'], 'gui': ['metrics/checkpoint_fw_connections.py', 'wato/checkpoint_fw_connections.py']}, 'name': 'checkpoint_fw_connections', 'title': 'Check Point Connections', - 'version': '0.0.4-20230303', + 'version': '0.0.5-20230529', 'version.min_required': '2.1.0b1', 'version.packaged': '2.1.0p21', 'version.usable_until': None} \ No newline at end of file