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

update project

parent 8c351b69
No related branches found
No related tags found
No related merge requests found
......@@ -19,10 +19,10 @@
# 2020-06-08: changed snmp-scan function, code cleanup
# 2021-08-24: rewritten for CMK 2.0,
# added relative thresholds (idea and code based on cmk PR #312 by https://github.com/gradecke)
# added lower levels and admin_table_limit
# added lower levels and admin_table_limit, removed default values except for 'levels_upper_relative'
#
#
# sample info
# sample string_table
# [[[u'559684419', u'203840211', u'51093794', u'786231', u'815404655', u'0']], [[u'11172', u'27598', u'0']]]
#
# no firewall
......@@ -209,7 +209,6 @@ register.check_plugin(
check_function=check_checkpoint_fw_connections,
check_ruleset_name='checkpoint_fw_connections',
check_default_parameters={
# 'levels_upper_absolute': (10000, 20000),
# 'levels_upper_relative': (75, 85)
'levels_upper_relative': (80, 90),
}
)
No preview for this file type
......@@ -70,8 +70,8 @@ metric_info['checkpoint_fw_connections_relative'] = {
graph_info['checkpoint_fw_connections_fwpeaknumconn'] = {
'title': _('Check Point Firewall Connections absolute'),
'metrics': [
('checkpoint_fw_connections_fwpeaknumconn', 'line'),
('checkpoint_fw_connections_fwcurrentnumconn', 'area'),
('checkpoint_fw_connections_fwpeaknumconn', 'line'),
],
'scalars': [
('checkpoint_fw_connections_fwcurrentnumconn:crit', _('crit')),
......@@ -94,10 +94,10 @@ graph_info['checkpoint_fw_connections_relative'] = {
graph_info['checkpoint_fw_connections_fwconnectionstcp'] = {
'title': _('Check Point Firewall Connections per second'),
'metrics': [
('checkpoint_fw_connections_fwconnectionstcp', 'stack'),
('checkpoint_fw_connections_fwconnectionsudp', 'stack'),
('checkpoint_fw_connections_fwconnectionsicmp', 'stack'),
('checkpoint_fw_connections_fwconnectionsother', 'stack'),
('checkpoint_fw_connections_fwconnectionsicmp', 'stack'),
('checkpoint_fw_connections_fwconnectionsudp', 'stack'),
('checkpoint_fw_connections_fwconnectionstcp', 'stack'),
('checkpoint_fw_connections_fwconnectionssum', 'line'),
('checkpoint_fw_connections_fwconnectionrate', 'line'),
],
......
......@@ -31,8 +31,8 @@ def _parameter_valuespec_checkpoint_fw_connections():
help=_('This rule sets upper limits to the current number of connections through '
'a Checkpoint firewall.'),
elements=[
Integer(title=_('Warning at'), default_value=1000, unit=_('connections')),
Integer(title=_('Critical at'), default_value=2000, unit=_('connections')),
Integer(title=_('Warning at'), minvalue=0, unit=_('connections')),
Integer(title=_('Critical at'), minvalue=0, unit=_('connections')),
])),
('levels_lower_absolute',
Tuple(
......@@ -40,8 +40,8 @@ def _parameter_valuespec_checkpoint_fw_connections():
help=_('This rule sets lower limits to the current number of connections through '
'a Checkpoint firewall.'),
elements=[
Integer(title=_('Warning blow'), default_value=100, unit=_('connections')),
Integer(title=_('Critical below'), default_value=50, unit=_('connections')),
Integer(title=_('Warning blow'), minvalue=0, unit=_('connections')),
Integer(title=_('Critical below'), minvalue=0, unit=_('connections')),
])),
('admin_table_limit',
Integer(
......@@ -64,10 +64,9 @@ def _parameter_valuespec_checkpoint_fw_connections():
'the absolute defaults or the ones defined above'),
elements=[
Percentage(
title=_('Warning at'), unit='%', minvalue=0.0, default_value=80.0,
),
title=_('Warning at'), unit='%', minvalue=0.0, maxvalue=100.0, default_value=80.0),
Percentage(
title=_('Critical at'), unit='%', minvalue=0.0, default_value=90.0),
title=_('Critical at'), unit='%', minvalue=0.0, maxvalue=100.0, default_value=90.0),
])),
('levels_lower_relative',
Tuple(
......@@ -79,10 +78,9 @@ def _parameter_valuespec_checkpoint_fw_connections():
'the absolute defaults or the ones defined above'),
elements=[
Percentage(
title=_('Warning below'), unit='%', minvalue=0.0, default_value=20.0,
),
title=_('Warning below'), unit='%', minvalue=0.0, maxvalue=100.0),
Percentage(
title=_('Critical below'), unit='%', minvalue=0.0, default_value=10.0),
title=_('Critical below'), unit='%', minvalue=0.0, maxvalue=100.0),
])),
],
# optional_keys=['levels_upper_relative'],
......
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