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

update project

parent 85d35c84
No related branches found
No related tags found
No related merge requests found
No preview for this file type
......@@ -838,7 +838,7 @@ def inventory_checkpoint_asg_resource(parsed):
def check_checkpoint_asg_resource(item, params, parsed):
try:
resource = parsed.get(item)
resource = parsed[item]
current_value = resource['current_value']
threshold = resource['threshold']
unit = resource['unit']
......@@ -847,6 +847,8 @@ def check_checkpoint_asg_resource(item, params, parsed):
if params:
pass
perfdata = [(item.lower().replace(' ', '_').replace(':', ''), current_value, None, threshold, 0, 100)]
infotext = 'used %d%s of %s total' % (current_value, unit, total_value)
......@@ -857,7 +859,7 @@ def check_checkpoint_asg_resource(item, params, parsed):
elif current_value > threshold:
yield 2, infotext, perfdata
except:
except KeyError:
pass
check_info['checkpoint_asg_resource'] = {
......
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