Attention if this is a Debian Bookworm and agent 2.2 then the service check-mk-agent@.service should not be there.
Normally you have now the cmk-agent-ctl-daemon.service and this service is also using the port 6556.
# systemctl status cmk-agent-ctl-daemon.service
Ă— cmk-agent-ctl-daemon.service - Checkmk agent controller daemon
Loaded: loaded (/lib/systemd/system/cmk-agent-ctl-daemon.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Sun 2024-05-12 12:24:38 CEST; 4 days ago
Duration: 1ms
Docs: https://docs.checkmk.com/latest/en/agent_linux.html
Process: 231 ExecStart=/usr/bin/cmk-agent-ctl daemon (code=exited, status=226/NAMESPACE)
Main PID: 231 (code=exited, status=226/NAMESPACE)
CPU: 1ms
Mai 12 12:24:38 mail systemd[1]: cmk-agent-ctl-daemon.service: Scheduled restart job, restart counter is at 5.
Mai 12 12:24:38 mail systemd[1]: Stopped cmk-agent-ctl-daemon.service - Checkmk agent controller daemon.
Mai 12 12:24:38 mail systemd[1]: cmk-agent-ctl-daemon.service: Start request repeated too quickly.
Mai 12 12:24:38 mail systemd[1]: cmk-agent-ctl-daemon.service: Failed with result 'exit-code'.
Mai 12 12:24:38 mail systemd[1]: Failed to start cmk-agent-ctl-daemon.service - Checkmk agent controller daemon.
OK, googled a bit and found a relation to LXC-containers on proxmox, that’s what I use. The LXC should have nesting enabled, what I alread have. Found a command that will enforce nesting on that LXC on the host:
pct set CTID -features nesting=1 && pct reboot CTID
This was a helpful thread for me over the weekend, when I had some trouble with a Debian LXC of my own. Two things I noticed:
Enabling nesting for this Debian-LXC actually helped.
Due to feedback from a colleague, I tried an Ubuntu-LXC next. With the container I did not have to activate nesting. The agent controller ran without any issue after installing the agent.
I have no clue what the difference between the Debian CT template and the Ubuntu template (both taken directly from Proxmox) is. At the moment I don’t have time to investigate, but to anybody who a) does not have to use Debian and b) does not want to activate nesting, an Ubuntu-LXC might be the way to go.
P.S.: Of course, it would be nice to find out, what is actually going on.
hello i have the issue on version 2.4 and on windows
installed but doesent listen on that port why?
Every other monitoring software works but i try to confiure and nothing works
First Agent isntall was deleted by defender thats now done
I dont want to fix anytime other issues what can i do ???