Werk #17558 · Feb 6, 25
mbg_lantime_ng_refclock: Fix KeyError(170)
Previously, the following crash could occur:
File "/omd/sites/{site}/share/check_mk/checks/mbg_lantime_ng_refclock", line 208, in mbg_lantime_ng_generalstate
detailed_state_txt = " (%s)" % refclock_substates[substate] if substate != "0" else ""
KeyError: 170
The following states from MBG-SNMP-LTNG-MIB::mbgLtNgRefclockSubstate have been added:
- mrsRefNone(-1),
- mrsVideoInSync(168),
- mrsLtcSync(169),
- mrsOscSync(170)
In particular, the check will no longer crash upon encountering such a state.
Details
- Class:
- Bug Fixes
- Level:
- Trivial
- Component:
- Checks
- Versions:
- 2.5.0b1All Editions
- 2.4.0b1All Editions
- 2.3.0p27CommunityProUltimateUltimate + MT