Versions Compared

Key

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

...

In that case, the agent controller is not running because xinetd is running. For the agent controller, systemd is necessary: https://checkmk.com/werk/13865 Werk #13865: Agent controller on Unix: Deny registration if agent socket is not operational

If you're using the bakery, you need to create the following rule:

...

Without the bakery, please follow these steps: https://docs.checkmk.com/latest/en/agent_linux_legacy.html#_systemdAgent Linux Legacy


ERROR [cmk_agent_ctl] Failed to discover agent receiver port from Checkmk REST API, both with http and https.

...

Add the self-signed certificate to the OS's cert store. Example for Ubuntu:  https://ubuntu.com/server/docs/security-trust-Install a root CA certificate in the trust store


ERROR [cmk_agent_ctl] Error while loading registered connections.

...

This error occurs when the automation user, which is used internally by the agent controller to gather more information, doesn't have the admin role.

Cannot authenticate, invalid user/passwort/secret

...

Request failed with code 401 Unauthorized


Detailed error message:

Code Block
themeRDark
ERROR [cmk_agent_ctl] Error registering existing host at https://myserver:8000/mysite

Caused by:
Request failed with code 401 Unauthorized: Unauthorized - Details: Wrong credentials (Bearer header)


If you see the this error messageCannot authenticate, invalid user/passwort/secret when trying to register the agent controller, you can check a couple of thingsthere is probably something wrong with the user.

Possible solutions

  • It is obvious, but it needs to be said: Check whether the username and the password or the secret are correct.
  • This error message can also be displayed when the option disable the login to this account is activated for this user. So please go to Setup > Users > Users in Checkmk and check if you see the following icon in the row for the user you are trying to authenticate with: Image Modified
    In this case, you have to edit the user and deactivate the checkbox in front of disable the login to this account.

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

...