[ZBX-17718] Agent2 v.5.0 does not fetch docker info Created: 2020 May 13 Updated: 2025 Feb 27 Resolved: 2025 Feb 27 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Agent (G) |
Affects Version/s: | 5.0.0 |
Fix Version/s: | 6.0.40rc1, 7.0.11rc1, 7.2.5rc1, 7.4.0beta1 (master) |
Type: | Documentation task | Priority: | Minor |
Reporter: | Gregory Orciuch | Assignee: | Martins Valkovskis |
Resolution: | Fixed | Votes: | 3 |
Labels: | 5.0, agent2, docker, templates | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Issue Links: |
|
||||||||||||
Team: | |||||||||||||
Sprint: | Sprint 64 (May 2020), Sprint 65 (Jun 2020), Sprint 66 (Jul 2020), Sprint 67 (Aug 2020), Sprint 68 (Sep 2020), Sprint 69 (Oct 2020), Sprint 70 (Nov 2020), Sprint 71 (Dec 2020), Sprint 72 (Jan 2021), Sprint 73 (Feb 2021), Sprint 74 (Mar 2021), Sprint 75 (Apr 2021), Sprint 76 (May 2021), Sprint 77 (Jun 2021), Sprint 78 (Jul 2021), Sprint 79 (Aug 2021), Sprint 80 (Sep 2021), Sprint 81 (Oct 2021), Sprint 82 (Nov 2021), Sprint 83 (Dec 2021), Sprint 84 (Jan 2022), Sprint 85 (Feb 2022), Sprint 86 (Mar 2022), Sprint 87 (Apr 2022), Sprint 88 (May 2022), Sprint 89 (Jun 2022), Support backlog, Sprint 90 (Jul 2022), Sprint 91 (Aug 2022), Sprint 92 (Sep 2022), Sprint 93 (Oct 2022), Sprint 94 (Nov 2022), Sprint 95 (Dec 2022), Sprint 96 (Jan 2023), Sprint 97 (Feb 2023), Sprint 98 (Mar 2023), Sprint 99 (Apr 2023), Sprint 100 (May 2023), Sprint 101 (Jun 2023), Sprint 102 (Jul 2023), Sprint 103 (Aug 2023), Sprint 104 (Sep 2023), Sprint 105 (Oct 2023), Sprint 106 (Nov 2023), Sprint 107 (Dec 2023), S2401 |
Description |
Steps to reproduce:
Result: Expected:
other metrics work nice.
from agent2 log: 2020/05/13 12:27:50.682116 Starting Zabbix Agent 2 [Zabbix server]. (5.0.0) 2020/05/13 12:27:50.684178 OpenSSL library (OpenSSL 1.1.1g FIPS 21 Apr 2020) initialized 2020/05/13 12:27:50.684471 using configuration file: /etc/zabbix/zabbix_agent2.conf 2020/05/13 12:27:50.684601 using plugin 'Agent' providing following interfaces: exporter 2020/05/13 12:27:50.684624 using plugin 'Cpu' providing following interfaces: exporter, collector, runner *2020/05/13 12:27:50.684642 using plugin 'Docker' providing following interfaces: exporter, configurator* 2020/05/13 12:27:50.684678 using plugin 'File' providing following interfaces: exporter, configurator 2020/05/13 12:27:50.684697 using plugin 'Kernel' providing following interfaces: exporter 2020/05/13 12:27:50.684714 using plugin 'Log' providing following interfaces: exporter, configurator 2020/05/13 12:27:50.684755 using plugin 'Memcached' providing following interfaces: exporter, runner, configurator 2020/05/13 12:27:50.684774 using plugin 'Mysql' providing following interfaces: exporter, runner, configurator 2020/05/13 12:27:50.684793 using plugin 'NetIf' providing following interfaces: exporter 2020/05/13 12:27:50.684812 using plugin 'Proc' providing following interfaces: exporter, collector 2020/05/13 12:27:50.684828 using plugin 'Redis' providing following interfaces: exporter, runner, configurator 2020/05/13 12:27:50.684847 using plugin 'SystemRun' providing following interfaces: exporter, configurator 2020/05/13 12:27:50.684865 using plugin 'Systemd' providing following interfaces: exporter 2020/05/13 12:27:50.684884 using plugin 'TCP' providing following interfaces: exporter, configurator 2020/05/13 12:27:50.684902 using plugin 'UDP' providing following interfaces: exporter, configurator 2020/05/13 12:27:50.684940 using plugin 'Uname' providing following interfaces: exporter 2020/05/13 12:27:50.684962 using plugin 'Uptime' providing following interfaces: exporter 2020/05/13 12:27:50.684980 using plugin 'VFSDev' providing following interfaces: exporter, collector 2020/05/13 12:27:50.684997 using plugin 'Web' providing following interfaces: exporter, configurator 2020/05/13 12:27:50.685015 using plugin 'ZabbixAsync' providing following interfaces: exporter 2020/05/13 12:27:50.685035 using plugin 'ZabbixStats' providing following interfaces: exporter, configurator 2020/05/13 12:27:50.685052 using plugin 'ZabbixSync' providing following interfaces: exporter |
Comments |
Comment by Gregory Orciuch [ 2020 May 13 ] |
Comment by Gregory Orciuch [ 2020 May 13 ] |
I debugged a little bit and it turned out in agent log: [Docker] cannot fetch data: Get http://1.28/info: dial unix /var/run/docker.sock: connect: permission denied Solved by adding zabbix user to docker group by: usermod -aG docker zabbix |
Comment by Edgar Akhmetshin [ 2020 May 13 ] |
Hello Gregory, Please check agent 2 configuration file, correct socket path should be set and both sides - agent and docker: ### Option: Plugins.Docker.Endpoint # Docker API endpoint. # # Mandatory: no # Default: unix:///var/run/docker.sock # Plugins.Docker.Endpoint=unix:///var/run/docker.sock Regards, |
Comment by Edgar Akhmetshin [ 2020 May 13 ] |
Ok, thank you for the update. But still setup process should be documented. Confirmed. Regards, |
Comment by manu.p [ 2020 Aug 18 ] |
Thank you SO much @Gregory Orciuch !!! |
Comment by Dimitri Bellini [ 2021 Mar 16 ] |
Hi ZabbixDev Team as suggested by Edgar, please mention on the Docker doc the possible issue related to "add zabbix user to docker group by: usermod -aG docker zabbix". This small detail could save our of debugging. Thanks so much |
Comment by sbindley [ 2022 Oct 21 ] |
For Ubuntu you have to add following |
Comment by Gregory Orciuch [ 2023 Dec 01 ] |
This is a joke, for 3 years that has not moved at all. You should close this issue or solve it by this time. Unsubscribing from this joke |
Comment by Martins Valkovskis [ 2024 Mar 15 ] |
The requirement of adding the agent 2 user ('zabbix') to the 'docker' group has been documented for docker.* items including docker.info. |