Werk #19418: Fix async plugin execution being skipped at the refresh interval boundary
| Component | Agent bakery | ||||||
| Title | Fix async plugin execution being skipped at the refresh interval boundary | ||||||
| Date | Apr 15, 2026 | ||||||
| Level | Trivial Change | ||||||
| Class | Bug Fix | ||||||
| Compatibility | Compatible - no manual interaction needed | ||||||
| Checkmk versions & editions |
|
When running agent plugins, local checks, or MRPE checks in async mode, the configured refresh interval was not always honored.
The cache staleness check used a strict greater-than comparison (-gt) against the refresh interval, which means that when the cache age was exactly equal to the interval, the plugin was not executed.
Only on the next agent cycle, when the cache age exceeded the refresh interval by at least one second, the plugin would be executed, effectively doubling the intended execution frequency.
With this werk the plugin is now re-executed as soon as the cache age reaches the configured refresh interval.
This applies to all Unix agent variants (Linux, AIX, FreeBSD, OpenWrt, Solaris) and to the mk_oracle plugin.