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

Komponente Checks & agents
Titel unix agents: changed signature of 'run_cached'
Datum 25.07.2021
Checkmk Edition Checkmk Raw (CRE)
Checkmk-Version 2.1.0b1
Level Kleine Änderung
Klasse Neues Feature
Kompatibilität Inkompatibel - Manuelle Interaktion könnte erforderlich sein

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.

Zur Liste aller Werks