CheckMK Raw Linux agent asynchronous plugin cache validity question

Hi CheckMK community,

I have a question about monitoring Linux with CheckMK Raw edition.

As described in section 8.2 of the Monitoring Linux article, it is possible to execute plugins asynchronously. I’m interested in using this for less time-sensitive plugins, but I couldn’t find information about how the cached data is handled on Linux.

If I understand the section correctly, the subfolder under /usr/lib/check_mk_agent/plugins determines the “minimum waiting time with the number of seconds before the plug-in should be executed again” and it follows up with “If the agent is queried again before the time expires, it uses cached data from the last time the plug-in was executed”

[…] it uses cached data […]

About this cached data:

  • Is there a maximum cache age before it becomes invalid?

  • If so, can it also be configured somewhere?

I found a section in the Monitoring Windows article (8.4) explaining how it can be configured on the Windows agent, but not on Linux.

Maybe I’m overlooking something, or misunderstanding how the caching works.

Thanks for looking into my question!

The subfolder’s name is the cache age in seconds.

You create a subfolder /usr/lib/check_mk_agent/plugins/3600 for agent plugins that should run hourly for example.

The cached data is stored in /var/lib/check_mk_agent/cache for each plugin. The cache file’s timestamp determines when the agent plugin is executed again.

4 Likes

Okay, thanks! Seems like I misunderstood.

I appreciate the clarification :slight_smile:

1 Like