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