Is it possible to disable or reduce cached agent data for specific checks?

CMK version: 2.2.0p5
OS version: RHEL 9

Error message: This service is based on cached agent data and cannot be rescheduled. Cache generated 100 s ago, cache interval: 90 s, elapsed cache lifespan: 111%

Is there a way to disable cache for certain types of local check? This particular check uses piggyback feature. The check itself is a shell script.

I need the check to not rely on cached data as I am actively making changes the check script and would like to test without any caching at play.

This is a local check stored in /usr/lib/check_mk_agent/plugins/mycheck.sh

Anyone from CMK team able to chime in?

Hi @c3rberus,

there are multiple ways to do caching on the Checkmk Agents.

Are you using the Bakery? If so, then please check the following rule.

The fact that the local check is stored there and not in /usr/lib/check_mk_agent/plugins/90/mycheck.sh
gives me the idea that it is a config thing.
You can also check the /etc/checkmk/ folder on the host for config files/entries.

Looking forward to your reply!
Norm

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.