Hi everybody,
i’am new to checkmk and trying to configure the agent but getting the same message, i couldn’t understand why.
Basically i installed checkmk site into Docker then i installed the agent into the desired server, but when i run the command:
sudo cmk-agent-ctl register -vv --hostname name --server ip:8000 --site cmk --user user --password pass
i’am getting the desired certificate but after i got:
Do you want to establish this connection? [Y/n]
> y
DEBUG [reqwest::connect] starting new connection: https://ip:8000/
DEBUG [reqwest::async_impl::client] response '401 Unauthorized' for https://ip:8000/cmk/agent-receiver/pairing
ERROR [cmk_agent_ctl] Error pairing with ip:8000/cmk
Caused by:
Request failed with code 401 Unauthorized: You need to be authenticated to use the REST API.
If somone could explain to me, what’s wrong or help me with the right documentation.