Werk #13355: OpenWRT agent: Make df section work with BusyBox

Component Checks & agents
Title OpenWRT agent: Make df section work with BusyBox
Date Nov 3, 2021
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.1.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
2.0.0p17 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

BusyBox does not support -x and -l as arguments to the df command. These arguments are removed from the OpenWRT agent, s.t. the df section is now available in combination with BusyBox.

Furthermore, -i is sometimes unsupported as well, so the agent will now first check if this argument is supported and only attempt to collect inodes information if it is.

Note that in order to avoid hanging agents due to remote filesystems, the df calls are terminated after a fixed timeout of 5 s. This means that the agent will only attempt to produce the df section if the waitmax command is available. Checkmk provides a waitmax binary or alternatively, you can install the timeout command.

To the list of all Werks