Werk #18472: Restore async/cached agent plugins

Component Checks & agents
Title Restore async/cached agent plugins
Date Jul 29, 2025
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.5.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.4.0p9 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

This reverts Werk #16813 and Werk #18216

Werk #16813 changed the way async agent plugins were executed and killed if they took longer than the creation timeout (twice the interval of the async execution). It utilized setsid which is not available on all platforms.

On platforms without setsid the new implementation caused flapping agent timeout warnings in the Checkmk Service.

We decided to revert the new implementation and go back to the implementation of Checkmk 2.3

Please note that this means that async agent plugins that take longer than the creation timeout are not killed and will take up resources until they finished. You can notice that by the warnings generated by the agent plugin timeouts in the Checkmk Service. You should then decide to either remove the plugin, or set higher values for the interval of said plugin (using the agent bakery rule "Set cache age for plug-ins (Linux, UNIX)"), as this also prolongs the creation timeout.

To the list of all Werks