Werk #12906: unix agents: changed signature of 'run_cached'

Component Checks & agents
Title unix agents: changed signature of 'run_cached'
Date Jul 25, 2021
Checkmk Editon Checkmk Raw (CRE)
Checkmk Version 2.1.0b1
Level Trivial Change
Class New Feature
Compatibility Incompatible - Manual interaction might be required

This incompatible API change only affects users who use the function run_cached exported by the agents.

The function no longer accepts the options -s, -m or -am.

The functions synopsis is now run_cached NAME MAXAGE COMMAND

  1. name: The name of the cache file
  2. maxage: The time in seconds the generated data should be considered valid
  3. command: The command to generate the data

In particular the removal of the '-s' option means you now have to include the creation of the section header in your command.

To the list of all Werks