Werk #1106: mk_inventory.ps1: now uses the MK_CONFDIR environment variable from the agent (if available)

Komponente Checks & agents
Titel mk_inventory.ps1: now uses the MK_CONFDIR environment variable from the agent (if available)
Datum 10.09.2014
Checkmk Edition Checkmk Raw (CRE)
Checkmk-Version 1.2.5i6
Level Kleine Änderung
Klasse Neues Feature
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen

The mk_inventory.ps1 needs to create statefile for each host. The path of this files were hardcoded to c:\Program Files (x86)\check_mk\timestamp.$remote_host
This has been changed. The latest check_mk agent now provides additional environment variables

  • PLUGINSDIR
  • LOCALDIR
  • SPOOLDIR
  • MK_CONFDIR

and the script uses them accordingly.

Zur Liste aller Werks