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
Checkmk Editon Checkmk Raw (CRE)
Checkmk Version 2.1.0i1 2.0.0p17
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed

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