Ad Widget

Collapse

How get Docker data using zabbix/zabbix-agent2 Docker image

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jm20575
    Junior Member
    • Dec 2021
    • 4

    #1

    How get Docker data using zabbix/zabbix-agent2 Docker image

    Hello, I have a host with Ubuntu 20.04.3 and Docker 20.10.12. Deploy the zabbix-agent2 using the docker image like this: docker run --name zabbix-agent -e ZBX_HOSTNAME = "cloud333" -e ZBX_SERVER_HOST = "192.168.30.140" -p 10050: 10050 --privileged -d zabbix / zabbix-agent2: alpine-trunk

    I can monitor Linux parameters well:

    Click image for larger version

Name:	Sin título.png
Views:	468
Size:	7.9 KB
ID:	437385

    but when I add the Docker template I can't see the data correctly:

    Click image for larger version

Name:	Sin título2.png
Views:	379
Size:	7.7 KB
ID:	437386

    No data

    Click image for larger version

Name:	Sin título3.png
Views:	388
Size:	37.5 KB
ID:	437387


    I have seen in some posts that it is necessary to add the user zabbix to the Docker group but always installing the agent direct in OS and I am using a container agent2.

    What can I do to see the Docker statistics?




  • DrCrave
    Junior Member
    • Apr 2022
    • 2

    #2
    Hi,

    Is your zabbix server also in a container? or installed on a separate VM?

    Comment

    • wib5y
      Junior Member
      • Dec 2024
      • 2

      #3
      Originally posted by jm20575
      What can I do to see the Docker statistics?
      Did you ever figure this out?

      Comment

      Working...