Issue running cmk-agent-ctl.exe" register with error Request failed with code 401 Unauthorized:

Do not explicitely specify the port of the web interface/REST API (in your case 443). Use the port of the Agent Receiver which is 8000 or 8001 instead or leave the port blank for auto detection.

(There have been lots of misunderstandings on this ports thing, I am in progress of updating the articles for the Linux and Windows agent)

1 Like