Werk #16250: Handle years in ntp output

Component Checks & agents
Title Handle years in ntp output
Date Aug 27, 2024
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.4.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0p14 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.2.0p33 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

This werk affects you, in case your last ntpq synchronization was indeed more than a year ago.

A potential check crash traceback looks like:

  File "/omd/sites/SITE/lib/python3/cmk/base/plugins/agent_based/ntp.py", line 67, in _ntp_fmt_time
    return int(raw)
ValueError: invalid literal for int() with base 10: '3y'

The year case is now handled in the parse function.

To the list of all Werks