Docker-compose configuration

CMK version:
checkmk/check-mk-raw:2.1.0-latest

OS version:
Ubuntu 20.04 server

Error message:
Attempting to register at checkmk.mydomain.xyz:8000/cmk. Server certificate details:
ERROR [cmk_agent_ctl] Connection refused (os error 111)

How to configure agent receiver port?
I have checkmk running in docker container and exposing ports:
ports:
- 9500:5000
- 9800:8000

When I am trying to register agent it fails due to wrong port defined in the url - 8000:
http://checkmk.mydomain.xyz/cmk/check_mk/api/1.0/domain-types/internal/actions/discover-receiver/invoke

If you forward port 9800 to 8000 then you also have to use port 9800 in your register command.
Something like this.

cmk-agent-ctl register --hostname myhost --server checkmk.mydomain.xyz:9800 --site cmk --user BAR --password FOO

Hi! yeah! thanks solved my problem.
had to register a new user for automation and it all works now.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.