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

update project

parent 88766e02
No related branches found
No related tags found
No related merge requests found
......@@ -40,12 +40,10 @@ def inventory_cisco_asyncos_mem(info):
def check_cisco_asyncos_mem(_no_item, params, info):
print params
# if 'levels' in params:
# warn, crit = params.get('levels',(80.0,90.0))
# else:
# warn, crit = params
warn, crit = (80.0,90.0)
if 'levels' in params:
warn, crit = params['levels']
else:
warn, crit = params
perc_used, memoryStatus = info[0]
perc_used = float(perc_used)
......@@ -81,5 +79,5 @@ check_info['cisco_asyncos_mem'] = {
]),
'snmp_scan_function': scan_cisco_asyncos,
'includes': ['cisco_asyncos.include'],
'default_levels_variable': 'cisco_asyncos_mem_default_level',
'default_levels_variable': 'cisco_asyncos_mem_default_levels',
}
\ No newline at end of file
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