Make the Zabbix library directory:
mkdir /usr/local/lib/zabbix/
Make the Zabbix agent directory under the Zabbix:
mkdir /usr/local/lib/zabbix/agent/
Move to the created agent directory:
cd /usr/local/lib/zabbix/agent/
Download compiled module for your specific Linux distro (I am using CentOS 7):
wget https://github.com/monitoringartist/zabbix-docker-monitoring/raw/gh-pages/centos7/3.4/zabbix_module_docker.so
Ensure you download the correct (.so) file for your Linux distro and agent version. You can find the correct version for your distro here:
https://github.com/monitoringartist/zabbix-docker-monitoring#installation
If they don't work your only option is to manually compile the .so file:
https://github.com/monitoringartist/zabbix-docker-monitoring#compilation
You can get the agent version by running: "$(which zabbix_agentd) -V"
Add the Zabbix user to the Docker group so the agent can access the required monitoring data:
usermod -aG docker zabbix
Add the created module directory to the Zabbix config and load the module:
nano /etc/zabbix/zabbix_agentd.conf
Add the following lines to the file:
LoadModulePath=/usr/local/lib/zabbix/agent/
LoadModule=zabbix_module_docker.so