Werk #12388: check_mk_agent.aix: Fix execution of cached plugins

Component Checks & agents
Title check_mk_agent.aix: Fix execution of cached plugins
Date Jun 25, 2021
Checkmk Edition Checkmk Raw (CRE)
Checkmk Version 2.0.0p7 2.1.0b1
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed

Plugins in the folder /usr/check_mk/lib/plugins/NUMBER are executed asynchronously. Since Checkmk version 2.0.0b4 it was broken because in ksh, dash or similar the following command in the run_cached function

sh -c "COMMAND-STRING"

expects executable commands/files but not inline functions.

To the list of all Werks