Werk #5508: cmk-update-agent.exe: Prevent Agent Updater from running twice
Komponente | Agent bakery |
Titel | cmk-update-agent.exe: Prevent Agent Updater from running twice |
Datum | 13.08.2018 |
Checkmk Edition | Checkmk Enterprise (CEE) |
Checkmk-Version | 1.5.0p2 1.6.0b1 |
Level | Kleine Änderung |
Klasse | Bugfix |
Kompatibilität | Kompatibel - benötigt kein manuelles Eingreifen |
On Windows, when cmk-update-agent.exe is invoked, a lockfile is created to prevent it from running twice at the same time.
This mechanism did not work properly when cmk-update-agent.exe got invoked multiple times from different user accounts, because the lockfiles were created within different directories.
This is now mitigated by creating the lockfile regardless of the current user within the "temp" directory of the Check_MK Agent installation.