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

update project

parent 727ef3c5
No related branches found
No related tags found
No related merge requests found
No preview for this file type
...@@ -6,12 +6,12 @@ ...@@ -6,12 +6,12 @@
# Author: thl-cmk[at]outlook[dot]com # Author: thl-cmk[at]outlook[dot]com
# URL : https://thl-cmk.hopto.org # URL : https://thl-cmk.hopto.org
# #
#
# 19.07.2016 : monitor Check Point FW Log server status # 19.07.2016 : monitor Check Point FW Log server status
# 24.07.2016 : changed for check state # 24.07.2016 : changed for check state
# 05.01.2018 : fix inventory function # 05.01.2018 : fix inventory function
# 08.03.2018 : changed snmp scan function and inventory function # 08.03.2018 : changed snmp scan function and inventory function
# 15.03.2018 : code cleanup # 15.03.2018 : code cleanup
# 08.06.2020 : changed snmp-scan function
# #
# sample snmpwalk # sample snmpwalk
# #
...@@ -165,8 +165,9 @@ check_info['checkpoint_fw_ls'] = { ...@@ -165,8 +165,9 @@ check_info['checkpoint_fw_ls'] = {
'group' : 'cp_fw_ls', 'group' : 'cp_fw_ls',
'has_perfdata' : True, 'has_perfdata' : True,
'snmp_scan_function': lambda oid: (oid('.1.3.6.1.2.1.1.2.0').startswith('.1.3.6.1.4.1.2620.1.6.123.1') or 'snmp_scan_function': lambda oid: (oid('.1.3.6.1.2.1.1.2.0').startswith('.1.3.6.1.4.1.2620.1.6.123.1') or
oid('.1.3.6.1.2.1.1.2.0') in ['.1.3.6.1.4.1.8072.3.2.10',]) # Virtual System (Linux) oid('.1.3.6.1.2.1.1.2.0').startswith('.1.3.6.1.4.1.8072.3.2.10')) and
and oid('.1.3.6.1.4.1.2620.1.1.30.1.0'), # todo: mib variable missing oid('.1.3.6.1.4.1.2620.1.6.1.0', '').lower().startswith('svn foundation'),
'snmp_info' : [ 'snmp_info' : [
('.1.3.6.1.4.1.2620.1.1.30', [ # CHECKPOINT-MIB:fwLSConn ('.1.3.6.1.4.1.2620.1.1.30', [ # CHECKPOINT-MIB:fwLSConn
'1', # fwLSConnOverall '1', # fwLSConnOverall
......
...@@ -6,13 +6,13 @@ ...@@ -6,13 +6,13 @@
# Author: thl-cmk[at]outlook[dot]com # Author: thl-cmk[at]outlook[dot]com
# URL : https://thl-cmk.hopto.org # URL : https://thl-cmk.hopto.org
# #
#
# 29.07.2016 : monitor Check Point FWM log server status # 29.07.2016 : monitor Check Point FWM log server status
# 08.05.2018 : changed snmp scan and inventory function # 08.05.2018 : changed snmp scan and inventory function
# 16.03.2018 : added R80.10 MIBs # 16.03.2018 : added R80.10 MIBs
# 30.05.2018 : removed empty OIDs CHECKPOINT-MIB::lsConnectedClientsEntry, # 30.05.2018 : removed empty OIDs CHECKPOINT-MIB::lsConnectedClientsEntry,
# CHECKPOINT-MIB::lsConnectedGatewaysEntry # CHECKPOINT-MIB::lsConnectedGatewaysEntry
# CHECKPOINT-MIB::lsLoggingInfo # CHECKPOINT-MIB::lsLoggingInfo
# 08.06.2020 : changed snmp-scan function
# #
# #
...@@ -132,6 +132,12 @@ ...@@ -132,6 +132,12 @@
# .1.3.6.1.4.1.2620.1.11.102.0 = STRING: "Problem" # .1.3.6.1.4.1.2620.1.11.102.0 = STRING: "Problem"
# .1.3.6.1.4.1.2620.1.11.103.0 = STRING: "Log Server is not running" # .1.3.6.1.4.1.2620.1.11.103.0 = STRING: "Log Server is not running"
# #
# sample info
# [[[u'Check Point Log Server', u'6', u'0', u'4663', u'1', u'0', u'OK', u'OK']], []]
#
# no logserver active
# [[], []]
#
factory_settings['checkpoint_fwm_ls_defaults'] = { factory_settings['checkpoint_fwm_ls_defaults'] = {
'ignore_status_on_r80_10': False, 'ignore_status_on_r80_10': False,
...@@ -139,7 +145,11 @@ factory_settings['checkpoint_fwm_ls_defaults'] = { ...@@ -139,7 +145,11 @@ factory_settings['checkpoint_fwm_ls_defaults'] = {
def inventory_checkpoint_fwm_ls(info): def inventory_checkpoint_fwm_ls(info):
return [(None, None)] try:
if info[0][0][0] == 'Check Point Log Server':
return [(None, None)]
except IndexError:
pass
def check_checkpoint_fwm_ls(item, params, info): def check_checkpoint_fwm_ls(item, params, info):
...@@ -184,8 +194,9 @@ check_info['checkpoint_fwm_ls'] = { ...@@ -184,8 +194,9 @@ check_info['checkpoint_fwm_ls'] = {
'service_description' : 'FWM Log Server', 'service_description' : 'FWM Log Server',
'group' : 'checkpoint_fwm_ls', 'group' : 'checkpoint_fwm_ls',
'has_perfdata' : True, 'has_perfdata' : True,
'snmp_scan_function' : lambda oid: oid('.1.3.6.1.2.1.1.2.0').startswith('.1.3.6.1.4.1.2620.1.6.123.1') 'snmp_scan_function': lambda oid: (oid('.1.3.6.1.2.1.1.2.0').startswith('.1.3.6.1.4.1.2620.1.6.123.1') or
and oid('.1.3.6.1.4.1.2620.1.11.1.0') == 'Check Point Log Server', oid('.1.3.6.1.2.1.1.2.0').startswith('.1.3.6.1.4.1.8072.3.2.10')) and
oid('.1.3.6.1.4.1.2620.1.6.1.0', '').lower().startswith('svn foundation'),
'snmp_info' : [('.1.3.6.1.4.1.2620.1.11', [ # CHECKPOINT-MIB::ls 'snmp_info' : [('.1.3.6.1.4.1.2620.1.11', [ # CHECKPOINT-MIB::ls
'1', # lsProdName '1', # lsProdName
'2', # lsVerMajor '2', # lsVerMajor
......
...@@ -8,6 +8,6 @@ ...@@ -8,6 +8,6 @@
'name': 'checkpoint_log_server', 'name': 'checkpoint_log_server',
'num_files': 6, 'num_files': 6,
'title': u'Check Point Log service status', 'title': u'Check Point Log service status',
'version': '20180731.v0.1.2c', 'version': '20200608.v0.1.2d',
'version.min_required': '1.2.8b8', 'version.min_required': '1.2.8b8',
'version.packaged': '1.4.0p38'} 'version.packaged': '1.4.0p38'}
\ No newline at end of file
#!/usr/bin/python #!/usr/bin/python
# -*- encoding: utf-8; py-indent-offset: 4 -*- # -*- encoding: utf-8; py-indent-offset: 4 -*-
# #
# Check Point Logserver metrics plugins # License: GNU General Public License v2
# checkpoint_fw_ls / checkpoint_fwm_ls
# #
# Author: Th.L. # Author: thl-cmk[at]outlook[dot]com
# URL : https://thl-cmk.hopto.org
# Date : 2018-03-17 # Date : 2018-03-17
# #
# Check Point Logserver metrics plugins
# checkpoint_fw_ls / checkpoint_fwm_ls
#
##################################################################################################################### ##############################################################################
# #
# define units for perfdata # define units for perfdata
# #
##################################################################################################################### ##############################################################################
##################################################################################################################### ##############################################################################
# #
# define metrics for perfdata # define metrics for perfdata
# #
##################################################################################################################### ##############################################################################
metric_info['checkpoint_fw_ls_localloggingwriterate'] = { metric_info['checkpoint_fw_ls_localloggingwriterate'] = {
'title': _('Local Logging Writing Rate'), 'title': _('Local Logging Writing Rate'),
...@@ -37,7 +39,6 @@ metric_info['checkpoint_fw_ls_lsconnsendrate'] = { ...@@ -37,7 +39,6 @@ metric_info['checkpoint_fw_ls_lsconnsendrate'] = {
'color': '31/a', 'color': '31/a',
} }
metric_info['checkpoint_fwm_ls_totalreadlogs'] = { metric_info['checkpoint_fwm_ls_totalreadlogs'] = {
'title': _('Total read logs'), 'title': _('Total read logs'),
'unit': '1/s', 'unit': '1/s',
...@@ -81,11 +82,11 @@ metric_info['checkpoint_fwm_ls_readlogsratepeak'] = { ...@@ -81,11 +82,11 @@ metric_info['checkpoint_fwm_ls_readlogsratepeak'] = {
'color': '22/a', 'color': '22/a',
} }
###################################################################################################################### ##############################################################################
# #
# map perfdata to metric # map perfdata to metric
# #
###################################################################################################################### ##############################################################################
check_metrics['check_mk-checkpoint_fw_ls'] = { check_metrics['check_mk-checkpoint_fw_ls'] = {
...@@ -105,12 +106,11 @@ check_metrics['check_mk-checkpoint_fwm_ls'] = { ...@@ -105,12 +106,11 @@ check_metrics['check_mk-checkpoint_fwm_ls'] = {
} }
##############################################################################
######################################################################################################################
# #
# how to graph perdata # how to graph perdata
# #
###################################################################################################################### ##############################################################################
graph_info.append({ graph_info.append({
'title': _('Check Point Firewall Logserver: over all'), 'title': _('Check Point Firewall Logserver: over all'),
...@@ -151,11 +151,11 @@ graph_info.append({ ...@@ -151,11 +151,11 @@ graph_info.append({
], ],
}) })
###################################################################################################################### ##############################################################################
# #
# define perf-o-meter # define perf-o-meter
# #
###################################################################################################################### ##############################################################################
perfometer_info.append(('stacked', [ perfometer_info.append(('stacked', [
{ {
...@@ -170,4 +170,4 @@ perfometer_info.append(('stacked', [ ...@@ -170,4 +170,4 @@ perfometer_info.append(('stacked', [
'half_value': 1000.0, 'half_value': 1000.0,
'exponent': 2, 'exponent': 2,
}, },
])) ]))
\ No newline at end of file
...@@ -13,13 +13,13 @@ register_check_parameters( ...@@ -13,13 +13,13 @@ register_check_parameters(
Dictionary( Dictionary(
elements=[ elements=[
('ignore_status_on_r80_10', ('ignore_status_on_r80_10',
FixedValue( FixedValue(
True, True,
help=_('Ignore status and alive on Check Point R80.10'), help=_('Ignore status and alive on Check Point R80.10'),
title=_('Ignore status and alive on Check Point R80.10'), title=_('Ignore status and alive on Check Point R80.10'),
)), )),
], ],
), ),
None, None,
match_type='dict', match_type='dict',
) )
\ 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