Versions Compared

Key

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

...

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

  1. It is obvious, but it needs to be said: Check whether the username and the password or the secret are correct.
  2. 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: 
    In this case you have to edit the user and deactivate the checkbox in front of disable the login to this account.

...