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

update project

parent c125e7cb
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,7 @@
# 2020-06-08: changed snmp-scan function
# 2021-08-27: rewritten for CMK 2.0
# 2022-09-08: fixed check_default_parameters
# fixed levels for remaining quota in cloud, use lower instead of upper
#
# snmpwalk sample
......@@ -145,7 +146,6 @@ def check_checkpoint_threat_emulation(params, section: CheckpointTeStatus) -> Ch
for levels, metric, label, value in [
(params.get('used_monthly_quota_levels'), 'monthly_quota_on_cloud_used', 'Used quota on cloud', section.monthly_quota_on_cloud_used),
(params.get('remaining_quota_levels'), 'remaining_quota_on_cloud', 'Remaining quota on cloud', section.remaining_quota_on_cloud), # max: quota_on_cloud
(params.get('files_waiting_levels'), 'current_files_waiting_for_emulation', 'Current files waiting for emulation', section.current_files_waiting_for_emulation), # max: quota_on_cloud
]:
if value:
......@@ -157,6 +157,18 @@ def check_checkpoint_threat_emulation(params, section: CheckpointTeStatus) -> Ch
render_func=lambda v: f'{v:.0f}'
)
for levels, metric, label, value in [
(params.get('remaining_quota_levels'), 'remaining_quota_on_cloud', 'Remaining quota on cloud', section.remaining_quota_on_cloud), # min: quota_on_cloud
]:
if value:
yield from check_levels(
value=value,
label=label,
levels_lower=levels,
metric_name=metric,
render_func=lambda v: f'{v:.0f}'
)
for metric, value in section.metric_count:
yield Metric(
value=value,
......
No preview for this file type
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