Ad Widget

Collapse

Zabbix-agent2 can't get docker infos, but get host infos

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Xbird
    Junior Member
    • May 2020
    • 3

    #1

    Zabbix-agent2 can't get docker infos, but get host infos

    HI,
    i've fresh installed zabbix-agent2 on a node, and I get cpu infos, memory,... but nothing about docker

    on Zserver I set the "Template App Docker" on the host configuration

    on the node, I have zabbix agent 5.0.0

    Code:
    zabbix_agent2 --version
    zabbix_agent2 (Zabbix) 5.0.0
    Revision 9665d62db0 9 October 2019, compilation time: May 11 2020 11:42:19
    
    Copyright (C) 2020 Zabbix SIA
    License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>.
    This is free software: you are free to change and redistribute it according to
    the license. There is NO WARRANTY, to the extent permitted by law.
    
    This product includes software developed by the OpenSSL Project
    for use in the OpenSSL Toolkit (http://www.openssl.org/).
    
    Compiled with OpenSSL 1.1.0g 2 Nov 2017
    Running with OpenSSL 1.1.1g 21 Apr 2020
    on node, It seem ok :
    Code:
    zabbix_agent2 -t docker.ping
    docker.ping [s|1]
    but on panel, I got nothing :

    Click image for larger version  Name:	Cgz0KyV - Imgur.png Views:	17 Size:	5.2 KB ID:	402086

    Do I have to setup something else on agent ?

    thanks
    Last edited by Xbird; 28-05-2020, 13:15.
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    Isn't the following command executed as the root user?
    Code:
    zabbix_agent2 -t docker.ping
    Zabbix agent runs as zabbix user, so you need to enable zabbix user to access Docker's socket. Please refer to the following post.

    Comment

    • Xbird
      Junior Member
      • May 2020
      • 3

      #3
      Hi Atsusi,

      thanks, now the docker ping work fine, that was a docker group issue.

      have a nice day !

      Comment

      Working...