User Tools

Site Tools


apps:zabbix:template:docker
no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


apps:zabbix:template:docker [2022-12-27 01:48] (current) – created Manuel Frei
Line 1: Line 1:
 +====== Zabbix - Template - Docker ======
 +
 +===== Configure =====
 +
 +Download and import the official [[https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/app/docker?at=release/6.2|Docker Template]].
 +
 +Make sure, zabbix_agent2 is installed on the server. Add the zabbix user to the docker group and restart the service.
 +
 +<code>
 +usermod -aG docker zabbix
 +systemctl restart zabbix-agent2.service                                     
 +</code>
 +
 +===== Problems =====
 +
 +==== Cannot fetch data ====
 +
 +<code>
 +root@dockerhost:~# sudo -u zabbix zabbix_agent2 -t docker.info                      
 +docker.info                                   [m|ZBX_NOTSUPPORTED] [Cannot fetch data: Get "http://1.28/info": dial unix /run/containerd/containerd.sock: connect: permission denied.]
 +</code>
 +
 +The zabbix user isn't allowed to access /run/containerd/containerd.sock. This can happen, if the user zabbix is not part of the group docker. To fix it:
 +
 +<code>
 +usermod -aG docker zabbix
 +</code> 
 +
  
apps/zabbix/template/docker.txt · Last modified: 2022-12-27 01:48 by Manuel Frei