Skip to content

A more modern agent (adapted from 2.5.0) for BusyBox-based systems and appliances - #960

Open
fabianswebworld wants to merge 1 commit into
Checkmk:masterfrom
fabianswebworld:busybox-agent-2-5-0
Open

fabianswebworld wants to merge 1 commit into
Checkmk:masterfrom
fabianswebworld:busybox-agent-2-5-0

Conversation

@fabianswebworld

Copy link
Copy Markdown

In this docs/treasures folder, there is already a stripped-down agent version for BusyBox.

However, this version is based on Agent version 1.5.0 as far as I can see and lacks many modern architectural changes regarding caching, async execution etc.

This new version is based on the 2.5.0 vanilla Linux agent and has been adapted to it and tested to work under RHEL-based, stripped-down Linux distributions running BusyBox.

What I have done:

  • Simplify df, free and ps command usage, as they don’t support all command-line options on BusyBox
  • For example, the injecton of cgroup:512 into the ps -o command had to be avoided as it didn’t work on BusyBox
  • Adapt to the different parameter order of the “timeout” command in BusyBox - we check for that, and if timeout is the broken BusyBox version, but our real waitmax is in /usr/bin, we use that
  • Adapt the usage of ntpq and also output systemtime using date, like the previous version by Matthias Haehnel did

More details how this came about can be found at the forum at https://forum.checkmk.com/t/a-more-modern-agent-adapted-from-2-5-0-for-busybox-based-systems-and-appliances/60617

If you don't like the old version being replaced by this one, maybe it would be an idea to rename the old one to "check_mk_agent_1_5_0.busybox" or the like, or rename this new one.

I hope it you find it useful (and it passes your tests) - cheers and best regards,
Fabian

…tems and appliances, see forum thread /t/60617
@github-actions

github-actions Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@fabianswebworld

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA or my organization already has a signed CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants