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

update project

parent 05acc52c
No related branches found
No related tags found
No related merge requests found
No preview for this file type
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
# #
factory_settings['checkpoint_fw_connections_defaults'] = { factory_settings['checkpoint_fw_connections_defaults'] = {
# 'warncritconcurrent': (1000, 2000), # 'warncritcurrent': (1000, 2000),
# 'warncritnew': (100, 200) # 'warncritnew': (100, 200)
} }
...@@ -61,7 +61,7 @@ def check_checkpoint_fw_connections(item, params, info): ...@@ -61,7 +61,7 @@ def check_checkpoint_fw_connections(item, params, info):
] ]
for info, unit, counter, value, warncrit in [ for info, unit, counter, value, warncrit in [
('current: ', '', 'fwcurrnetnumconn', fwCurrnetNumConn, 'warncritconcurrent'), ('current: ', '', 'fwcurrentnumconn', fwCurrnetNumConn, 'warncritcurrent'),
('rate: ', '/s', 'fwconnectionrate', fwConnectionRate, 'warncritrate') ('rate: ', '/s', 'fwconnectionrate', fwConnectionRate, 'warncritrate')
]: ]:
if params.get(warncrit): if params.get(warncrit):
......
...@@ -31,7 +31,7 @@ metric_info['checkpoint_fw_connections_fwconnectionstcp'] = { ...@@ -31,7 +31,7 @@ metric_info['checkpoint_fw_connections_fwconnectionstcp'] = {
metric_info['checkpoint_fw_connections_fwconnectionsudp'] = { metric_info['checkpoint_fw_connections_fwconnectionsudp'] = {
'title': _('UDP connections'), 'title': _('UDP connections'),
'unit': '1/s', 'unit': '1/s',
'color': '21/a', 'color': '14/a',
} }
metric_info['checkpoint_fw_connections_fwconnectionsicmp'] = { metric_info['checkpoint_fw_connections_fwconnectionsicmp'] = {
'title': _('ICMP connections'), 'title': _('ICMP connections'),
...@@ -41,7 +41,7 @@ metric_info['checkpoint_fw_connections_fwconnectionsicmp'] = { ...@@ -41,7 +41,7 @@ metric_info['checkpoint_fw_connections_fwconnectionsicmp'] = {
metric_info['checkpoint_fw_connections_fwconnectionsother'] = { metric_info['checkpoint_fw_connections_fwconnectionsother'] = {
'title': _('Other connections'), 'title': _('Other connections'),
'unit': '1/s', 'unit': '1/s',
'color': '41/a', 'color': '34/a',
} }
metric_info['checkpoint_fw_connections_fwconnectionssum'] = { metric_info['checkpoint_fw_connections_fwconnectionssum'] = {
'title': _('Total connections'), 'title': _('Total connections'),
...@@ -51,7 +51,7 @@ metric_info['checkpoint_fw_connections_fwconnectionssum'] = { ...@@ -51,7 +51,7 @@ metric_info['checkpoint_fw_connections_fwconnectionssum'] = {
metric_info['checkpoint_fw_connections_fwconnectionrate'] = { metric_info['checkpoint_fw_connections_fwconnectionrate'] = {
'title': _('Connections rate'), 'title': _('Connections rate'),
'unit': '1/s', 'unit': '1/s',
'color': '42/a', 'color': '22/a',
} }
metric_info['checkpoint_fw_connections_fwcurrentnumconn'] = { metric_info['checkpoint_fw_connections_fwcurrentnumconn'] = {
...@@ -62,7 +62,7 @@ metric_info['checkpoint_fw_connections_fwcurrentnumconn'] = { ...@@ -62,7 +62,7 @@ metric_info['checkpoint_fw_connections_fwcurrentnumconn'] = {
metric_info['checkpoint_fw_connections_fwpeaknumconn'] = { metric_info['checkpoint_fw_connections_fwpeaknumconn'] = {
'title': _('Peak Connections'), 'title': _('Peak Connections'),
'unit': 'count', 'unit': 'count',
'color': '23/a', 'color': '13/a',
} }
...@@ -131,8 +131,8 @@ perfometer_info.append(('stacked', [ ...@@ -131,8 +131,8 @@ perfometer_info.append(('stacked', [
}, },
{ {
'type': 'logarithmic', 'type': 'logarithmic',
'metric': 'checkpoint_fw_connections_fwconnectionssum', 'metric': 'checkpoint_fw_connections_fwconnectionrate',
'half_value': 1000.0, 'half_value': 1000.0,
'exponent': 2, 'exponent': 2,
}, },
])) ]))
\ No newline at end of file
...@@ -13,9 +13,9 @@ register_check_parameters( ...@@ -13,9 +13,9 @@ register_check_parameters(
_('Check Point Firewall Connections'), _('Check Point Firewall Connections'),
Dictionary( Dictionary(
elements=[ elements=[
('warncritconcurrent', ('warncritcurrent',
Tuple( Tuple(
title=_('Levels for number of concurrent active connections'), title=_('Levels for number of current active connections'),
elements=[ elements=[
Integer(title=_('Warning at'), default_value=1000, unit=_('Count'), allow_empty=False), Integer(title=_('Warning at'), default_value=1000, unit=_('Count'), allow_empty=False),
Integer(title=_('Critical at'), default_value=2000, unit=_('Count'), allow_empty=False), Integer(title=_('Critical at'), default_value=2000, unit=_('Count'), allow_empty=False),
......
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