Werk #16250: Handle years in ntp output

Komponente Checks & agents
Titel Handle years in ntp output
Datum 27.08.2024
Level Kleine Änderung
Klasse Bugfix
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen
Checkmk versions & editions
2.4.0b1 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.

Zur Liste aller Werks