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

Komponente Checks & agents
Titel OpenWRT agent: Make df section work with BusyBox
Datum 03.11.2021
Checkmk-Editon Checkmk Raw (CRE)
Checkmk-Version 2.1.0i1 2.0.0p17
Level Kleine Änderung
Klasse Bugfix
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen

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.

Zur Liste aller Werks