Werk #12906: unix agents: changed signature of 'run_cached'
Component | Checks & agents | ||
Title | unix agents: changed signature of 'run_cached' | ||
Date | Jul 25, 2021 | ||
Level | Trivial Change | ||
Class | New Feature | ||
Compatibility | Incompatible - Manual interaction might be required | ||
Checkmk versions & editions |
|
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
- name: The name of the cache file
- maxage: The time in seconds the generated data should be considered valid
- 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.