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

update project

parent b8a0cd50
No related branches found
No related tags found
No related merge requests found
...@@ -7,9 +7,10 @@ ...@@ -7,9 +7,10 @@
# URL : https://thl-cmk.hopto.org # URL : https://thl-cmk.hopto.org
# Date : 2021-03-18 # Date : 2021-03-18
# #
# Monitor Cisco ASA temperature sensors # Monitor Cisco ASA Sensors (Temperature, Fan and Power supply)
#
# 2021-03-21: fixed params in cisco_asa_fan
# #
# 2021-02-25: rewrite for CMK 2.x
# #
# sample snmpwalk # sample snmpwalk
# .1.3.6.1.2.1.47.1.1.1.1.7.1 = STRING: "Chassis" # .1.3.6.1.2.1.47.1.1.1.1.7.1 = STRING: "Chassis"
...@@ -272,9 +273,6 @@ register.check_plugin( ...@@ -272,9 +273,6 @@ register.check_plugin(
# #
# ################################################################################################## # ##################################################################################################
def render_rpm(value) -> str:
return '%s RPM' % str(value)
def discovery_cisco_asa_fan(section: Dict) -> DiscoveryResult: def discovery_cisco_asa_fan(section: Dict) -> DiscoveryResult:
for key in section['fan']: for key in section['fan']:
...@@ -290,10 +288,10 @@ def check_cisco_asa_fan(item, params, section) -> CheckResult: ...@@ -290,10 +288,10 @@ def check_cisco_asa_fan(item, params, section) -> CheckResult:
yield from check_levels( yield from check_levels(
sensor.value, sensor.value,
label='Speed', label='Speed',
levels_lower=params.get('levels_lower', None), levels_lower=params.get('lower', None),
levels_upper=params.get('levels_upper', None), levels_upper=params.get('upper', None),
metric_name='fan' if params.get('output_metrics') else None, metric_name='fan' if params.get('output_metrics') else None,
render_func=render_rpm, render_func=lambda v: '%s RPM' % str(v),
) )
except KeyError: except KeyError:
......
No preview for this file type
...@@ -9,5 +9,5 @@ ...@@ -9,5 +9,5 @@
'title': 'Cisco ASA Sensors', 'title': 'Cisco ASA Sensors',
'version': '20210318_v0.0.1', 'version': '20210318_v0.0.1',
'version.min_required': '2.0.0', 'version.min_required': '2.0.0',
'version.packaged': '2.0.0', 'version.packaged': '2.0.0p1',
'version.usable_until': None} 'version.usable_until': None}
\ 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