Add waitmax in all unix agents to the local, mrpe, plugin and run_cached checks
It happens from time to time that a check runs longer than it should for some reason. In the worst case this leads to an agent timeout and the remaining checks are no longer executed.
The Unix agents should be protected against long-running checks with a general and/or check-specific timeout, just like the Windows agent, so that the remaining checks can still be executed.
Of course you could just run everything with run_cached. But then you get the result only with the next agent run which is not always desired.
The problem of the long agent runtime that results from the sequential execution of all checks is addressed in this feature request:
https://features.checkmk.com/suggestions/306004/let-unix-agents-execute-sectionspluginslocal-checks-in-parallel
Comments: 1
-
20 Mar
Lars Sörensengood example why the agent should limit the check runtime
https://forum.checkmk.com/t/checkmk-agent-becomes-a-zombie-through-docker-check-plugin/44919
It should be configurable in a similar way like the Windows agent with the check_mk.user.yml.