Hi, completely noob here, I have some experience with Nagios (which I use for work) and I've installed Zabbix server using docker-compose on a VM on Proxmox on my home lab.
The agent (which is installed as alpine Docker container) works fine for checking the host os, but cannot get Docker stats.
It says "Docker: Service is down" but Docker is not down.
If I enter the host details, I see "Docker: Ping" as "Down (0)", and if I look at "Docker: Get info" I get this message:
Cannot fetch data: Get "http://1.28/info": dial unix /var/run/docker.sock: connect: permission denied.
I know that zabbix-agent2 container has access to /var/run/docker.sock because I added that to docker compose, and on the host I added a zabbix user which is member of docker group (which is owner of docker.sock).
If I run the command zabbix_agent2 -t docker.ping from the agent container, I get docker.ping [s|0].
The agent (which is installed as alpine Docker container) works fine for checking the host os, but cannot get Docker stats.
It says "Docker: Service is down" but Docker is not down.
If I enter the host details, I see "Docker: Ping" as "Down (0)", and if I look at "Docker: Get info" I get this message:
Cannot fetch data: Get "http://1.28/info": dial unix /var/run/docker.sock: connect: permission denied.
I know that zabbix-agent2 container has access to /var/run/docker.sock because I added that to docker compose, and on the host I added a zabbix user which is member of docker group (which is owner of docker.sock).
If I run the command zabbix_agent2 -t docker.ping from the agent container, I get docker.ping [s|0].
Comment