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

Delete checkpoint_securexl

parent 4e6a6632
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/python
# -*- encoding: utf-8; py-indent-offset: 4 -*-
#
# License: GNU General Public License v2
#
# Author: thl-cmk[at]outlook[dot]com
# URL : https://thl-cmk.hopto.org
# Date : 2018-03-14
#
# Monitor status of Check Point SecureXL
#
# 2020-06-08: changed snmp-scan function
# renamed from checkpoint_securexl_status to checkpoint_securexl
#
# snmpwalk sample
#
# CHECKPOINT-MIB::fwSXLStatus.0 = INTEGER: enabled(1)
# CHECKPOINT-MIB::fwSXLConnsExisting.0 = Wrong Type (should be INTEGER): Gauge32: 51
# CHECKPOINT-MIB::fwSXLConnsAdded.0 = Wrong Type (should be INTEGER): Gauge32: 630
# CHECKPOINT-MIB::fwSXLConnsDeleted.0 = Wrong Type (should be INTEGER): Gauge32: 578
#
# .1.3.6.1.4.1.2620.1.36.1.1.0 = INTEGER: 1
# .1.3.6.1.4.1.2620.1.36.1.2.0 = Gauge32: 40
# .1.3.6.1.4.1.2620.1.36.1.3.0 = Gauge32: 645
# .1.3.6.1.4.1.2620.1.36.1.4.0 = Gauge32: 604
#
# sample info
#
# [[u'1', u'48', u'7932', u'7986']]
#
factory_settings['checkpoint_securexl_defaults'] = {
}
def inventory_checkpoint_securexl(info):
return [(None, None)]
def check_checkpoint_securexl(_no_item, _no_params, info):
fwSXLStatus, fwSXLConnsExisting, fwSXLConnsAdded, fwSXLConnsDeleted = info[0]
if int(fwSXLStatus) == 1:
longoutput = ''
now_time = time.time()
fwSXLConnsExisting = int(fwSXLConnsExisting)
fwSXLConnsAdded = get_rate('checkpoint_securexl.%s' % 'fwSXLConnsAdded', now_time, int(fwSXLConnsAdded), onwrap=SKIP)
fwSXLConnsDeleted = get_rate('checkpoint_securexl.%s' % 'fwSXLConnsDeleted', now_time, int(fwSXLConnsDeleted), onwrap=SKIP)
# Counters
infotext = 'Connections: Active %d, Added: %0.2f/s, Deleted: %0.2f/s' % (fwSXLConnsExisting, fwSXLConnsAdded, fwSXLConnsDeleted)
perfdata = [('connections_active', fwSXLConnsExisting),
('connections_added', fwSXLConnsAdded),
('connections_deleted', fwSXLConnsDeleted),
]
yield 0, infotext + longoutput, perfdata
else:
yield 1, 'SXL not enabled'
check_info['checkpoint_securexl'] = {
'check_function' : check_checkpoint_securexl,
'inventory_function' : inventory_checkpoint_securexl,
'service_description' : 'SecureXL',
'has_perfdata' : True,
'group' : 'checkpoint_securexl',
'default_levels_variable': 'checkpoint_securexl_defaults',
'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.36.1', [
'1', # fwSXLStatus
'2', # fwSXLConnsExisting
'3', # fwSXLConnsAdded
'4', # fwSXLConnsDeleted
]),
}
\ 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