Werk #2275: windows agent: new subfolders, improved folder cleanup during uninstall

Component Checks & agents
Title windows agent: new subfolders, improved folder cleanup during uninstall
Date May 19, 2015
Checkmk Edition Checkmk Raw (CRE)
Checkmk Version 1.2.7i1
Level Trivial Change
Class New Feature
Compatibility Incompatible - Manual interaction might be required

The windows agent now comes with the following folders

FolderDescription
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.

To the list of all Werks