Werk #1106: mk_inventory.ps1: now uses the MK_CONFDIR environment variable from the agent (if available)
Component | Checks & agents |
Title | mk_inventory.ps1: now uses the MK_CONFDIR environment variable from the agent (if available) |
Date | Sep 10, 2014 |
Checkmk Edition | Checkmk Raw (CRE) |
Checkmk Version | 1.2.5i6 |
Level | Trivial Change |
Class | New Feature |
Compatibility | Compatible - no manual interaction needed |
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.