We use cookies to ensure that we give you the best experience on our website.  Visit our Privacy Policy to learn more. If you continue to use this site, we will assume that you are okay with it.

Your choices regarding cookies on this site.
Your preferences have been updated.
In order for the changes to take effect completely please clear your browser cookies and cache. Then reload the page.

Werk #10360: agent_aws: Fetch live data from AWS if special agent configuration has changed

ComponentChecks & Agents
Titleagent_aws: Fetch live data from AWS if special agent configuration has changed
Date2019-10-24 16:51:02
Checkmk EditionCheckmk Raw Edition (CRE)
Checkmk Version1.6.0p6,1.7.0i1
LevelTrivial Change
ClassBug Fix
CompatibilityCompatible - no manual interaction needed

The special agent agent_aws fetches data from an AWS account relying on the WATO configuration ruleset Amazon Web Services (AWS) for a given host.

Cloudwatch metrics and other metrics have a resolution of 5 minutes by default. (S3 has 1 day). In order to save API calls and costs the agent caches the data.

If the special agent configuration changes the agent does not recognize that and still uses old cached data until the cache expires.

Now the special agent computes a hash over the current configuration and if the configuration changes the agent fetches live data immediately.

The configuration hash will be stored in tmp/check_mk/agents/agent_aws/HOSTNAME.config_hash.

From cmk -D HOSTNAME you get the commandline of the special agent for a given host. With the additional option --no-cache you can update the cached data, too.

Workaround for previous special agent versions: Remove the files tmp/check_mk/agents/agent_aws/REGION/HOSTNAME/*.