Werk #17785: systemd_units_* plugin crashes when CPU time is bigger than 4 weeks

Component Checks & agents
Title systemd_units_* plugin crashes when CPU time is bigger than 4 weeks
Date Mar 19, 2025
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.5.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.4.0b2 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

systemd_units_services_summary and systemd_units_sockets_summary crashed when CPU time was bigger than 4 weeks, since the time parsing function was incomplete.

This fixes and completes the time parsing function and adds the parsing for months and weeks according to systemd source code.

CMK-22331

To the list of all Werks