Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Please run the following commands to check the state of the agent controller and the port states:


For Linux

Code Block
languagebash
themeRDark
ss -tulpn | grep 6556

ps waux | grep cmk-agent-ctl

cmk-agent-ctl status

systemctl status check-mk-agent.socket
systemctl status cmk-agent-ctl-daemon.service


For Windows

Code Block
languagebash
themeRDark
netsh interface ipv4 show excludedportrange protocol=tcp

Solution

For Linux

If the registration is good, but cmk-agent-ctl cannot be started. This might be a bug.

You might then switch to xinetd mode:

Code Block
languagebash
themeRDark
apt install xinetd


Disable the systemd services:

Code Block
languagebash
themeRDark
systemctl stop check-mk-agent.socket
systemctl disable check-mk-agent.socket
systemctl stop cmk-agent-ctl-daemon.service
systemctl disable cmk-agent-ctl-daemon.service

Install the xinetd service:

Code Block
languagebash
themeRDark
/var/lib/cmk-agent/scripts/super-server/1_xinetd/setup deploy
/var/lib/cmk-agent/scripts/super-server/1_xinetd/setup trigger


Disable TLS registration on the CMK Server: Properties of host → menu → entry Host → Remove TLS registration

Afterwards ss should show xinetd claiming the connection 

Code Block
languagebash
themeRDark
ss
systemctl status check-mk-agent.socket


Filter by label (Content by label)
showLabelsfalse
max5
spacesKB
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ("agent","agent_controller") and type = "page" and space = "KB"
labelsagent agent_controller

...

Page Properties
hiddentrue


Related issues