Werk #2275

KomponenteChecks & Agents
Titelwindows agent: new subfolders, improved folder cleanup during uninstall
Datum2015-05-19 15:41:55
Check_MK EditionCheck_MK Raw Edition (CRE)
Check_MK Version1.2.7i1
Level1 - Triviale Änderung
KlasseNew Feature
KompatibilitätIncompatible - Manual interaction might be required

The windows agent now comes with the following folders

locallocal scripts
pluginsplugin scripts
configconfiguration files for scripts
statestate files for scripts and the agent, e.g. logwatch state
spoolspoolfiles from other applications
loglogfiles from scripts and the agent
tempworking directory for scripts

When you update the agent to a newer version, the content of this folders will not get deleted. Only during the uninstall everything is cleaned up, with two exceptions. Self-written scripts in the local and plugin folders are not automatically deleted during uninstall. These files will linger around till you remove them manually.

The incompatible part of this werk is the changed location of the state files for the logwatch and logfiles checks. These files were located in the agent directory, now they are located in the subdirectory state. As a result, if you start the new agent there will be no known last offsets of the logwatch and the eventlog monitoring. In this scenario the agent will start at the end. If you want to start at the old offsets, you need to copy the files logstate.txt and eventstate.txt into the state directory.