dockercheck-mk

check_mk: How to install mk_docker.py on agent?


From Version 1.5.0 Check_MK can monitor docker containers directly over the Linux agents. I have upgraded to this version (server and agent), but there are no newly-detected services for docker. I found this in the man page of the docker check:

To make this check work the agent plugin {mk_docker.py} has to be installed

How can I install mk_docker.py? What am I doing wrong?


Solution

  • Ok, I've got the solution:

    On the host (where the agent is installed) run

    /usr/bin/check_mk_agent | grep PluginsDirectory
    

    That dir is the one you have to copy the agent plugin files to.

    Copy the plugins from your server to the host:

    scp /omd/sites/yoursite/share/check_mk/agents/plugins/plugin.py root@yourhost:/path/to/pluginsdir