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 |
|
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.