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

update project

parent 0cf8f02a
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,6 @@
# 2021-09-10: rewrite parse function
# 2021-09-11: added WATO, cleanup
# 2022-10-23: fixed warning on upgrade "non-empty params vanished" for discovery_chassis and discovery_sgms
# 2022-11-17: added workaround for wrong SNMP data in grad/maxgrade in R81.x
#
# sample snmpwalk
# .1.3.6.1.4.1.2620.1.48.28.1.0 = STRING: "Multi"
......@@ -158,9 +157,8 @@ def check_checkpoint_asg_chassis(params, section: CheckPointASGChassis) -> Check
else:
yield Result(state=State.OK, summary=f'Chassis {chassis.id}: {chassis.status}')
maxgrade = max(chassis.grad, chassis.maxgrade) # bad workaround for anmp bug in R81.x
summary = f'grade: {chassis.grade}/{maxgrade}'
details = f'Chassis {chassis.id} grade: {chassis.grade}/{maxgrade}'
summary = f'grade: {chassis.grade}/{chassis.maxgrade}'
details = f'Chassis {chassis.id} grade: {chassis.grade}/{chassis.maxgrade}'
if chassis.grade != chassis.maxgrade:
yield Result(state=State(params['state_chassis_not_max_grade']), summary=summary, details=details)
else:
......
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