Werk #13683: Solaris agent update removes services symlink
|Title||Solaris agent update removes services symlink|
|Date||Jun 9, 2022|
|Checkmk Editon||Checkmk Enterprise (CEE)|
|Checkmk Version||2.2.0i1 2.1.0p3 2.0.0p26|
|Compatibility||Incompatible - Manual interaction might be required|
When updating agents using the agent updater on Solaris, the postremove script will try to remove the corresponding service line from /etc/services. However, the script recently missed the fact that this usually is a symbolic link to the actual services file, and overrode it with a new (hardlinked) file.
Moreover, this situation could lead to a missing Checkmk agent service, as the situation got cleaned up on calls to pkg verify and pkg fix by replacing the /etc/services file with the proper symbolic link again, locking out the Checkmk agent.
This Werk is marked as incompatible, because some additional action might be required to finally fix the state on your Solaris hosts. The uninstallation script now preserves an existing symlink, but can't clean up an overridden link. When setting the symlink back to its proper target manually while the Checkmk agent is installed, be sure to paste the line containing check-mk-agent to the target file in advance.