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

update project

parent d513e1eb
No related branches found
No related tags found
No related merge requests found
No preview for this file type
......@@ -13,6 +13,7 @@
# 2018-05-30: removed 'unknown' OIDs
# removed counters for last day, last week, last month
# code cleanup
# 2020-06-08: changed snmp-scan function
#
# snmpwalk sample
#
......@@ -131,17 +132,9 @@ check_info['checkpoint_threat_emulation'] = {
'inventory_function' : inventory_checkpoint_threat_emulation,
'service_description' : 'Threat Emulation status',
'has_perfdata' : True,
#'snmp_scan_function': lambda oid: oid('.1.3.6.1.2.1.1.2.0') in ['.1.3.6.1.4.1.2620.1.6.123.1.67', # ClusterXL Gateway
# '.1.3.6.1.4.1.2620.1.6.123.1.65', # Appliance
# '.1.3.6.1.4.1.2620.1.6.123.1.64', # VSX Gateway
# '.1.3.6.1.4.1.2620.1.6.123.1.62', # Gateway
# '.1.3.6.1.4.1.2620.1.6.123.1.49', # R77.30 Gateway
# '.1.3.6.1.4.1.2620.1.6.123.1.48', # Mgmt
# '.1.3.6.1.4.1.8072.3.2.10'] # Virtual System (Linux),
'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.49.16.0'), # CHECKPOINT-MIB::teUpdateStatus.0
'group' : 'checkpoint_threat_emulation',
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'), 'group' : 'checkpoint_threat_emulation',
'default_levels_variable': 'checkpoint_threat_emulation_defaults',
'snmp_info' : [('.1.3.6.1.4.1.2620.1.49', [ # CHECKPOINT-MIB::te (status)
'3', # monthly_quota_on_cloud_used
......
......@@ -7,6 +7,6 @@
'name': 'checkpoint_threat_emulation',
'num_files': 3,
'title': u'Check Point Threat Emulation',
'version': '20180731.v.0.0.3',
'version': '20200608.v.0.0.3a',
'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 Threat Emulation metrics plugin
# checkpoint_threat_emulation
# 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-19
#
# Check Point Threat Emulation metrics plugin
# checkpoint_threat_emulation
#
metric_info['checkpoint_threat_emulation_remaining_quota_on_cloud'] = {
'title': _('Remaining quota on cloud'),
......@@ -73,20 +76,22 @@ metric_info['checkpoint_threat_emulation_peak_queue_size_current'] = {
}
check_metrics['check_mk-checkpoint_threat_emulation'] = {
'remaining_quota_on_cloud': {'name': 'checkpoint_threat_emulation_remaining_quota_on_cloud',},
'monthly_quota_on_cloud_used': {'name': 'checkpoint_threat_emulation_monthly_quota_on_cloud_used',},
'current_files_waiting_for_emulation': {'name': 'checkpoint_threat_emulation_current_files_waiting_for_emulation',},
'scanned_files_current': {'name': 'checkpoint_threat_emulation_scanned_files_current',},
'malicious_files_detected_current': {'name': 'checkpoint_threat_emulation_malicious_files_detected_current',},
'files_scanned_by_threat_cloud_current': {'name': 'checkpoint_threat_emulation_files_scanned_by_threat_cloud_current',},
'malicious_files_detected_by_threat_cloud_current': {'name': 'checkpoint_threat_emulation_malicious_files_detected_by_threat_cloud_current',},
'average_process_time_current': {'name': 'checkpoint_threat_emulation_average_process_time_current',},
'average_emulated_file_size_current': {'name': 'checkpoint_threat_emulation_average_emulated_file_size_current',},
'average_queue_size_current': {'name': 'checkpoint_threat_emulation_average_queue_size_current',},
'remaining_quota_on_cloud': {'name': 'checkpoint_threat_emulation_remaining_quota_on_cloud', },
'monthly_quota_on_cloud_used': {'name': 'checkpoint_threat_emulation_monthly_quota_on_cloud_used', },
'current_files_waiting_for_emulation': {
'name': 'checkpoint_threat_emulation_current_files_waiting_for_emulation', },
'scanned_files_current': {'name': 'checkpoint_threat_emulation_scanned_files_current', },
'malicious_files_detected_current': {'name': 'checkpoint_threat_emulation_malicious_files_detected_current', },
'files_scanned_by_threat_cloud_current': {
'name': 'checkpoint_threat_emulation_files_scanned_by_threat_cloud_current', },
'malicious_files_detected_by_threat_cloud_current': {
'name': 'checkpoint_threat_emulation_malicious_files_detected_by_threat_cloud_current', },
'average_process_time_current': {'name': 'checkpoint_threat_emulation_average_process_time_current', },
'average_emulated_file_size_current': {'name': 'checkpoint_threat_emulation_average_emulated_file_size_current', },
'average_queue_size_current': {'name': 'checkpoint_threat_emulation_average_queue_size_current', },
'peak_queue_size_current': {'name': 'checkpoint_threat_emulation_peak_queue_size_current', },
}
graph_info.append({
'title': _('Check Point Threat Emulation remaining quota on cloud'),
'metrics': [
......@@ -164,4 +169,4 @@ graph_info.append({
'metrics': [
('checkpoint_threat_emulation_peak_queue_size_current', 'line'),
],
})
})
\ 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