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

update project

parent d343d403
No related branches found
No related tags found
No related merge requests found
...@@ -12,14 +12,12 @@ ...@@ -12,14 +12,12 @@
# 24.02.2020: rewritten for cmk 1.6.x, includes "temperature.include" # 24.02.2020: rewritten for cmk 1.6.x, includes "temperature.include"
# Note: item has ben changed from "Environment: <sensorname" to "Temperature <sensorname> # Note: item has ben changed from "Environment: <sensorname" to "Temperature <sensorname>
# Note: wato/metrics changed to use CMK build in template # Note: wato/metrics changed to use CMK build in template
# 30.05.2020: cleanup
# #
#
factory_settings['cisco_asa_temp_default_levels'] = {'levels_lower': (0.0, -10.0), factory_settings['cisco_asa_temp_default_levels'] = {
'levels': (60, 80),
'output_unit': 'c', }
'device_levels_handling': 'usr',
}
def inventory_cisco_asa_temp(info): def inventory_cisco_asa_temp(info):
...@@ -31,11 +29,11 @@ def inventory_cisco_asa_temp(info): ...@@ -31,11 +29,11 @@ def inventory_cisco_asa_temp(info):
def check_cisco_asa_temp(item, params, info): def check_cisco_asa_temp(item, params, info):
for sensorname, sensortype, sensorvalue, sensorstatus, sensorunits in info: for sensorname, sensortype, sensorvalue, sensorstatus, sensorunits in info:
if sensorname == item and sensortype == '8': if sensorname == item and sensortype == '8':
yield check_temperature(reading=float(sensorvalue), yield check_temperature(
params=params, reading=float(sensorvalue),
unique_name='cisco_asa_temp_%s' % sensorname, params=params,
# dev_status=int(sensorstatus) unique_name='cisco_asa_temp_%s' % sensorname,
) )
check_info['cisco_asa_temp'] = { check_info['cisco_asa_temp'] = {
...@@ -54,4 +52,4 @@ check_info['cisco_asa_temp'] = { ...@@ -54,4 +52,4 @@ check_info['cisco_asa_temp'] = {
'99.1.1.1.6', #ENTITY-SENSOR-MIB::entPhySensorUnitsDisplay '99.1.1.1.6', #ENTITY-SENSOR-MIB::entPhySensorUnitsDisplay
]), ]),
'includes': ['temperature.include'], 'includes': ['temperature.include'],
} }
\ No newline at end of file
No preview for this file type
...@@ -7,4 +7,4 @@ ...@@ -7,4 +7,4 @@
'title': u'monitor Cisco ASA temperature sensors', 'title': u'monitor Cisco ASA temperature sensors',
'version': '20200224.v04', 'version': '20200224.v04',
'version.min_required': '1.6.0', 'version.min_required': '1.6.0',
'version.packaged': '1.6.0p8'} 'version.packaged': '1.4.0p38'}
\ No newline at end of file \ 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