CMK version: Raw 2.1.0
OS version: Docker Image checkmk/check-mk-raw
docker-compose.yml
version: '3.8'
services:
monitoring:
image: checkmk/check-mk-raw
container_name: monitoring
volumes:
- monitoring-data:/omd/sites
- /etc/localtime:/etc/localtime:ro
tmpfs:
- /opt/omd/sites/cmk/tmp:uid=1000,gid=1000
restart: unless-stopped
labels:
- "traefik.enable=true"
- "traefik.docker.network=web"
- "traefik.http.routers.monitoring.rule=Host(`monitoring.domain.co.uk`)"
- "traefik.http.routers.monitoring.entrypoints=websecure"
- "traefik.http.routers.monitoring.tls.certresolver=myresolver"
- "traefik.http.services.monitoring.loadbalancer.server.port=5000"
networks:
- web
ports:
- 8000:8000
volumes:
monitoring-data:
networks:
web:
external: true
Error message: [agent] Host is registered for TLS but not using it(!!)
Additional Details
I’m running CHECKMK in a docker container and I’m trying to monitor the docker host (Ubuntu 10.04.4) it’s running on but I get the below tls error. It did successfully register and I’m getting some information through to the gui but not much.
I had problems registering a windows host until I realised I needed to map port 8000 to the container (can’t see it mentioned in your docker tutorial fyi) so I’m assuming it’s a similar problem. I think from the below error information it’s trying to use port 6556 but the agent and the container can’t use it at the same time. When I tried to map the port to the container I received Error starting userland proxy: listen tcp4 0.0.0.0:6556: bind: address already in use
I assume I’m missing something fairly obvious? Thanks in advance for any help.
Output of “cmk --debug -vvn hostname”: (If it is a problem with checks or plugins)
OMD[cmk]:~$ cmk --debug -vvn docker
Checkmk version 2.1.0
Try license usage history update.
Trying to acquire lock on /omd/sites/cmk/var/check_mk/license_usage/next_run
Got lock on /omd/sites/cmk/var/check_mk/license_usage/next_run
Trying to acquire lock on /omd/sites/cmk/var/check_mk/license_usage/history.json
Got lock on /omd/sites/cmk/var/check_mk/license_usage/history.json
Next run time has not been reached yet. Abort.
Releasing lock on /omd/sites/cmk/var/check_mk/license_usage/history.json
Released lock on /omd/sites/cmk/var/check_mk/license_usage/history.json
Releasing lock on /omd/sites/cmk/var/check_mk/license_usage/next_run
Released lock on /omd/sites/cmk/var/check_mk/license_usage/next_run
+ FETCHING DATA
Source: SourceType.HOST/FetcherType.TCP
[cpu_tracking] Start [7f9f88d64a90]
[TCPFetcher] Fetch with cache settings: DefaultAgentFileCache(docker, base_path=/omd/sites/cmk/tmp/check_mk/cache, max_age=MaxAge(checking=0, discovery=120, inventory=120), disabled=False, use_outdated=False, simulation=False)
Not using cache (Does not exist)
[TCPFetcher] Execute data source
Connecting via TCP to 127.0.1.1:6556 (5.0s timeout)
Detected transport protocol: TransportProtocol.PLAIN (b'<<')
Closing TCP connection to 127.0.1.1:6556
[cpu_tracking] Stop [7f9f88d64a90 - Snapshot(process=posix.times_result(user=0.010000000000000009, system=0.0, children_user=0.0, children_system=0.0, elapsed=0.07000000029802322))]
Source: SourceType.HOST/FetcherType.PIGGYBACK
[cpu_tracking] Start [7f9f88d64580]
[PiggybackFetcher] Fetch with cache settings: NoCache(docker, base_path=/omd/sites/cmk/tmp/check_mk/data_source_cache/piggyback, max_age=MaxAge(checking=0, discovery=120, inventory=120), disabled=True, use_outdated=False, simulation=False)
Not using cache (Cache usage disabled)
[PiggybackFetcher] Execute data source
No piggyback files for 'docker'. Skip processing.
No piggyback files for '127.0.1.1'. Skip processing.
Not using cache (Cache usage disabled)
[cpu_tracking] Stop [7f9f88d64580 - Snapshot(process=posix.times_result(user=0.0, system=0.0, children_user=0.0, children_system=0.0, elapsed=0.0))]
+ PARSE FETCHER RESULTS
Source: SourceType.HOST/FetcherType.TCP
-> Not adding sections: Host is registered for TLS but not using it
Source: SourceType.HOST/FetcherType.PIGGYBACK
No persisted sections
-> Add sections: []
Received no piggyback data
Received no piggyback data
[cpu_tracking] Start [7f9f88d134c0]
value store: synchronizing
Trying to acquire lock on /omd/sites/cmk/tmp/check_mk/counters/docker
Got lock on /omd/sites/cmk/tmp/check_mk/counters/docker
value store: loading from disk
Releasing lock on /omd/sites/cmk/tmp/check_mk/counters/docker
Released lock on /omd/sites/cmk/tmp/check_mk/counters/docker
No piggyback files for 'docker'. Skip processing.
No piggyback files for '127.0.1.1'. Skip processing.
[cpu_tracking] Stop [7f9f88d134c0 - Snapshot(process=posix.times_result(user=0.0, system=0.0, children_user=0.0, children_system=0.0, elapsed=0.0))]
[agent] Host is registered for TLS but not using it(!!), execution time 0.1 sec | execution_time=0.070 user_time=0.010 system_time=0.000 children_user_time=0.000 children_system_time=0.000 cmk_time_agent=0.060