Catch up on the latest product updates, best practices, and expert insights from the Checkmk Conference #12 – Watch the livestream recordings now

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
3.0.0b1
Not yet released
Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Cloud, Checkmk Ultimate MT
2.5.0p10
Not yet released
Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Cloud, Checkmk Ultimate MT

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.

To the list of all Werks