CMK version: 2.1.0p11
OS version: Debian 11, Ubuntu 20.04.4, Ubuntu 21.10
Error message: None however the agent service never starts
Output of “cmk --debug -vvn hostname”: cmk not found
I’ve installed checkmk in a virtual machine in my Proxmox environment (7.2-7) on Debian 11.4 which seems to work great. I then proceeded to download the agent for Linux (Setup > Agents > Linux) on a fresh installation of above mentioned versions of Debian/Ubuntu in a VM. I elevate myself by using sudo su - and proceed to login as root on the freshly installed server and then I run dpkg -i check-mk-agent_2.1.0p11-1_all.deb.
Adding that these OS images haven’t been touched by my otherwise default setup with cloud-init/terraform/ansible etc. Vanilla images. Same issue on Cloud images from either Ubuntu/Debian.
This is the output I get:
Selecting previously unselected package check-mk-agent.
(Reading database ... 71816 files and directories currently installed.)
Preparing to unpack check-mk-agent_2.1.0p11-1_all.deb ...
Unpacking check-mk-agent (2.1.0p11-1) ...
Setting up check-mk-agent (2.1.0p11-1) ...
Deploying systemd units: cmk-agent-ctl-daemon.service check-mk-agent.socket check-mk-agent-async.service check-mk-agent@.service
Deployed systemd
Upon checking if check-mk-agent.socket is running I can see that it’s loaded but not enabled:
● check-mk-agent.socket - Local Checkmk agent socket
Loaded: loaded (/lib/systemd/system/check-mk-agent.socket; disabled; vendor preset: enabled)
Active: inactive (dead)
Listen: /run/check-mk-agent.socket (Stream)
Accepted: 0; Connected: 0;
I manually enable check-mk-agent.socket and try to start it but I end up with:
Sep 06 04:48:17 check-ubuntoo systemd[1]: Starting Local Checkmk agent socket.
Sep 06 04:48:17 check-ubuntoo systemd[2196]: check-mk-agent.socket: Failed to resolve user cmk-agent: No such process
Sep 06 04:48:17 check-ubuntoo systemd[1]: check-mk-agent.socket: Control process exited, code=exited, status=217/USER
Sep 06 04:48:17 check-ubuntoo systemd[1]: check-mk-agent.socket: Failed with result 'exit-code'.
Sep 06 04:48:17 check-ubuntoo systemd[1]: Failed to listen on Local Checkmk agent socket.
I’ve tested this on three different freshly installed VM’s using above mentioned OS versions and end up with the same exact issue and error on the service. I haven’t found anything by googling other than:
xinetd might be blocking systemd: I don’t have xinetd
reboot the server: Does not make a difference. I’ve uninstalled the package, rebooted the server, installed the package, rebooted the server etc.
Any ideas?