Docker compose container not picking up details from tplink switch

CMK version: raw, 2.1.0
OS version: docker (running on ubuntu 22.04 lts)

Error message:
“Could not find any service for this host. You might need to trigger a rescan.”
When I rescan:
“Could not find any service for this host. You might need to trigger a rescan.”

Checkmk can see the switch:

Output of “cmk --debug -vvn hostname”: I can’t seem to run this when I:

docker exec -it checkmk /bin/bash

into the container. the cmk command doesn’t exist.

Here is my compose file:

checkmk:
image: checkmk/check-mk-raw:2.1.0-latest
container_name: checkmk
environment:
- PUID=1000
- PGID=1000
- TZ=${TimeZ}
ports:
- 8090:5000
- 8000:8000
- 161:161
- 162:162
tmpfs:
- /opt/omd/sites/cmk/tmp:uid=1000,gid=1000
volumes:
- ${DATAPATH}checkmk/sites:/omd/sites
- ${DATAPATH}checkmk/mibs:/omd/sites/cmk/local/share/check_mk/mibs
restart: unless-stopped

I’ve tried downloading the mibs and uploading them to the mibs directory, no dice.
I’m unsure how to get the tplink plugin working, so I haven’t tried that yet.

Any suggestions?

After going into the container you need to switch to your site user. Then you will have the cmk command.
But for your problem you can use on the shell the following command.

cmk --debug -vvII hostname
1 Like

ah ok!

I switched to the site user and ran:

cmk --debug -vvII 192.168.1.5

and got the following (I’m omitting a ton of output here)

SUCCESS - Found 1 host labels

  • ANALYSE DISCOVERED SERVICES
  • EXECUTING DISCOVERY PLUGINS (7)
    Trying discovery with: docker_container_status_uptime, tplink_poe_summary, uptime, snmp_info, tplink_cpu, tplink_mem, interfaces
    4 interfaces
    1 snmp_info
    1 tplink_cpu
    1 tplink_mem
    1 uptime
    SUCCESS - Found 8 services

although I’m still not showing services I can monitor in the webgui.
What should I look for in the full output?

After your successful discovery, you only need to activate the changes.
This can be done inside the GUI
image
image
Or on the command line with cmk -R

1 Like

Did you configure the host to use SNMP and disable the Agent like the docs tells?

1 Like

ok, this is what I get after that, when looking at the host services:

So at this point I can make some dashboards!

I swear I did, but I just fixed that:

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.