Werk #15236: Host renaming got stuck when "Automatically create monitoring agents" was activated

Component Setup
Title Host renaming got stuck when "Automatically create monitoring agents" was activated
Date Feb 9, 2023
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.2.0b1 Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.1.0p22 Checkmk Enterprise (CEE), Checkmk MSP (CME)

When the configuration option "Automatically create monitoring agents" was enabled, the operation "rename host" got stuck indefinitely.

You can recover from this by killing the (second) apache processes accessing multisite.mk and restarting (CMC and apache):

OMD[mySite]:~$ fuser etc/check_mk/multisite.mk
/opt/omd/sites/mySite/etc/check_mk/multisite.mk: 2294054 2294059 2294332
OMD[mySite]:~$ kill 2294059
OMD[mySite]:~$ omd restart

To the list of all Werks