Werk #17938: docker container diskstat: fix parsing of io.stat line

Component Checks & agents
Title docker container diskstat: fix parsing of io.stat line
Date Apr 23, 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.0 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0p32
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

Parsing of the section docker_container_diskstat_cgroupv2 sometimes crashed due to the presence of multiple device blocks at the beginning of the single io.stat line, e.g.:

253:0 253:1 rbytes=559349760 wbytes=334268297216 rios=3910 wios=6265888 dbytes=0 dios=0

instead of

253:0 rbytes=559349760 wbytes=334268297216 rios=3910 wios=6265888 dbytes=0 dios=0

To the list of all Werks