Werk #17237: check_mk_agent.openwrt: resolve issue when hostname command unavailable

Component Checks & agents
Title check_mk_agent.openwrt: resolve issue when hostname command unavailable
Date Nov 8, 2024
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.4.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0p21 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.2.0p37 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

Built-in BusyBox shell in OpenWRT has no hostname command available per default. While it can be added with additional packages in custom images there are alternative ways to determine the machine's hostname without introducing an additional dependency. This werk uses one of those alternatives.

To the list of all Werks