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

update project

parent 122f97e9
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
# 2018-03-08 : changed snmp scan function and inventory function # 2018-03-08 : changed snmp scan function and inventory function
# 2018-03-15 : code cleanup # 2018-03-15 : code cleanup
# 2020-06-08 : changed snmp-scan function # 2020-06-08 : changed snmp-scan function
# 2021-06-14 : rewrite for cmk 2.0 # 2021-06-14 : rewrite for cmk 2.0, added wato
# #
# sample snmpwalk # sample snmpwalk
# #
...@@ -150,8 +150,8 @@ def check_checkpoint_fw_ls(item, params, section: Dict) -> CheckResult: ...@@ -150,8 +150,8 @@ def check_checkpoint_fw_ls(item, params, section: Dict) -> CheckResult:
if item == 'over all': if item == 'over all':
if over_all.fwLocalLoggingWriteRate is not None and over_all.fwLoggingHandlingRate is not None: # R80.10 and up if over_all.fwLocalLoggingWriteRate is not None and over_all.fwLoggingHandlingRate is not None: # R80.10 and up
yield Metric(name='checkpoint_fw_ls_fwlocalloggingwriterate', value=over_all.fwLocalLoggingWriteRate) yield Metric(name='checkpoint_fw_ls_localloggingwriterate', value=over_all.fwLocalLoggingWriteRate)
yield Metric(name='checkpoint_fw_ls_fwlogginghandlingrate', value=over_all.fwLoggingHandlingRate) yield Metric(name='checkpoint_fw_ls_logginghandlingrate', value=over_all.fwLoggingHandlingRate)
yield Result(state=State(over_all.fwlsconnoverall), summary=over_all.fwlsconnoveralldesc) yield Result(state=State(over_all.fwlsconnoverall), summary=over_all.fwlsconnoveralldesc)
if over_all.fwlocalloggingdesc != '': if over_all.fwlocalloggingdesc != '':
...@@ -168,7 +168,7 @@ def check_checkpoint_fw_ls(item, params, section: Dict) -> CheckResult: ...@@ -168,7 +168,7 @@ def check_checkpoint_fw_ls(item, params, section: Dict) -> CheckResult:
return return
if log_server.fwLSConnSendRate is not None: # R80.10 and up if log_server.fwLSConnSendRate is not None: # R80.10 and up
yield Metric(name='checkpoint_fw_ls_fwlsconnsendrate', value=log_server.fwLSConnSendRate) yield Metric(name='checkpoint_fw_ls_lsconnsendrate', value=log_server.fwLSConnSendRate)
if log_server.fwLSConnState == 1: if log_server.fwLSConnState == 1:
yield Result(state=State.CRIT, summary='State: Connection error') yield Result(state=State.CRIT, summary='State: Connection error')
......
No preview for this file type
...@@ -89,7 +89,7 @@ metric_info['checkpoint_fwm_ls_readlogsratepeak'] = { ...@@ -89,7 +89,7 @@ metric_info['checkpoint_fwm_ls_readlogsratepeak'] = {
# #
############################################################################## ##############################################################################
graph_info['checkpoint_fw_ls.over_all'] = { graph_info['checkpoint_fw_ls_over_all'] = {
'title': _('Check Point Firewall Logserver: over all'), 'title': _('Check Point Firewall Logserver: over all'),
'metrics': [ 'metrics': [
('checkpoint_fw_ls_localloggingwriterate', 'line'), ('checkpoint_fw_ls_localloggingwriterate', 'line'),
...@@ -97,14 +97,14 @@ graph_info['checkpoint_fw_ls.over_all'] = { ...@@ -97,14 +97,14 @@ graph_info['checkpoint_fw_ls.over_all'] = {
], ],
} }
graph_info['checkpoint_fw_ls.gateway'] = { graph_info['checkpoint_fw_ls_gateway'] = {
'title': _('Check Point Firewall Log server'), 'title': _('Check Point Firewall Log server'),
'metrics': [ 'metrics': [
('checkpoint_fw_ls_lsconnsendrate', 'line'), ('checkpoint_fw_ls_lsconnsendrate', 'line'),
], ],
} }
graph_info['checkpoint_fwm_ls.management'] = { graph_info['checkpoint_fwm_ls_management'] = {
'title': _('Check Point Management Firewall Log server'), 'title': _('Check Point Management Firewall Log server'),
'metrics': [ 'metrics': [
('checkpoint_fwm_ls_updatesandlogsindexedratepeak', 'line'), ('checkpoint_fwm_ls_updatesandlogsindexedratepeak', 'line'),
...@@ -112,7 +112,7 @@ graph_info['checkpoint_fwm_ls.management'] = { ...@@ -112,7 +112,7 @@ graph_info['checkpoint_fwm_ls.management'] = {
], ],
} }
graph_info['checkpoint_fwm_ls.read_logs'] = { graph_info['checkpoint_fwm_ls_read_logs'] = {
'title': _('Check Point Management Firewall Log server read logs'), 'title': _('Check Point Management Firewall Log server read logs'),
'metrics': [ 'metrics': [
('checkpoint_fwm_ls_totalreadlogserrors', 'line'), ('checkpoint_fwm_ls_totalreadlogserrors', 'line'),
...@@ -120,7 +120,7 @@ graph_info['checkpoint_fwm_ls.read_logs'] = { ...@@ -120,7 +120,7 @@ graph_info['checkpoint_fwm_ls.read_logs'] = {
], ],
} }
graph_info['checkpoint_fwm_ls.updates'] = { graph_info['checkpoint_fwm_ls_updates'] = {
'title': _('Check Point Management Firewall Log server updates and logs indexed'), 'title': _('Check Point Management Firewall Log server updates and logs indexed'),
'metrics': [ 'metrics': [
('checkpoint_fwm_ls_totalupdatesandlogsindexederrors', 'line'), ('checkpoint_fwm_ls_totalupdatesandlogsindexederrors', 'line'),
...@@ -143,8 +143,15 @@ perfometer_info.append(('stacked', [ ...@@ -143,8 +143,15 @@ perfometer_info.append(('stacked', [
}, },
{ {
'type': 'logarithmic', 'type': 'logarithmic',
'metric': 'checkpoint_fw_ls_localloggingwriterate', 'metric': 'checkpoint_fw_ls_logginghandlingrate',
'half_value': 1000.0, 'half_value': 1000.0,
'exponent': 2, 'exponent': 2,
}, },
])) ]))
perfometer_info.append({
'type': 'logarithmic',
'metric': 'checkpoint_fw_ls_lsconnsendrate',
'half_value': 500.0,
'exponent': 2,
})
\ 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