Have you placed the docker.py script into the Checkmk agent plugin directory? You need to do that so that the agent will run the script and capture the output.
Judging from the command you showed, it looks like that copied the plugin into a Docker container that is running the Checkmk server. What you need to do is copy the script to the agent directory on the host being monitored.
Assuming the host being monitored can access port 443 on the Checkmk server, you should be able to install the plugin with the following script:
# Define variables
# Make sure there is no trailing slash on $cmkPluginDir
cmkDns=checkmk.example.com
cmkSite=omd
cmkPluginDir=/usr/lib/check_mk_agent/plugins
cmkPluginName=mk_docker.py
# Download the file
downloadUrl="https://${cmkDns}/${cmkSite}/check_mk/agents/plugins/${cmkPluginName}"
sudo wget -P "${cmkPluginDir}" "${downloadUrl}"
# Ensure correct ownership and permissions
sudo chown root: "${cmkPluginDir}/${cmkPluginName}"
sudo chmod 755 "${cmkPluginDir}/${cmkPluginName}"
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.