Werk #13990: Fix systemd_units check plugin crash on certain initial line characters

Component Checks & agents
Title Fix systemd_units check plugin crash on certain initial line characters
Date Jun 22, 2022
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.2.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.1.0p4 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

In some cases, the plugin systemd_units crashed when parsing raw agent data. In such cases, the Check_MK Discovery service reported "Parsing of section systemd_units failed" and went WARNING. The error message in the corresponding crash report was:

IndexError (list index out of range)

To the list of all Werks