Werk #16927: lnx_bonding failing with 'head: *: No such file or directory' if no bonding interface is configured
| Component | Checks & agents | ||||
| Title | lnx_bonding failing with 'head: *: No such file or directory' if no bonding interface is configured | ||||
| Date | Jul 22, 2026 | ||||
| Level | Trivial Change | ||||
| Class | Bug Fix | ||||
| Compatibility | Compatible - no manual interaction needed | ||||
| Checkmk versions & editions |
|
The Linux and OpenWrt agents collect bonding information by reading the files in /proc/net/bonding. This directory exists whenever the bonding kernel module is loaded, even if no bonding interface is actually configured.
In that case the directory is empty, and the agent tried to run head on an unmatched shell glob. This wrote an error such as head: ./*: No such file or directory to the agent output.
The agents now only read the bonding files when at least one bonding interface is present, so no spurious error is emitted.