Error message: Unable to monitor docker containers
Hello,
we have install docker.cfg and also pip3 docker. We are able to monitor number of containers, how many of them are in running sttae, paused state and stopped state. Now we are trying to monitor status of containers. We have found this article: Monitoring All The Things with checkmk - Blogging to Nowhere where are steps to enable monitoring with piggyback but in our case we are unable. Can you please help us somehow to get start this working? Thank you all guys!
Here it is important how the parameters in your “docker.cfg” are set.
Normally you create now some hosts with the same name/UID as your docker container (without IP and without agent/snmp). Now CMK assign the collected data from your docker host to these containers and display some information. For an easy handling it is good to set inside “docker.cfg” that you want the container names as piggyback name.
With this i would say the docker plugin is running
@erik2 can you take a look at the folder “~/tmp/check_mk/piggyback/” on your monitoring server.
There inside you should find some folders with the names of your containers. The created host objects must have exactly the same name to see something.
Hi,
as @andreas-doehler mentioned: “Normally you create now some hosts with the same name” … that’s important. When using the Enterprise Edition Checkmk can create the docker container hosts automatically for you.
Now situation is better, I could monitor containers if I choice whole name (including ID)
, buuut, ID of containers are changing after restart of docker. Do you have any suggestion how to hendle this?
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.