MYHOSPITALNOW.COM

Find Trusted Doctors & Hospitals

Discover healthcare providers, compare hospitals, and explore treatment options worldwide.

Free Treatment Quotes • Doctor Search • Hospital Comparison

Find Healthcare Options

www.myhospitalnow.com

How to monitor docker using Zabbix?

Step 1 – Install Docker

Step 2 – Install Zabbix Agent 2

Step 3 – Configure Zabbix Agent 2

Step 4 – Fix the permission

Zabbix Agent(/usr/sbin/zabbix_agentd) and Zabbix Server(/usr/sbin/zabbix_server) run with a user called “zabbix”. Docker monitoring commands can be run only by the user if root or a user which is part of linux group called “docker”. thus, For the Zabbix agent to keep an eye on Docker containers, you need to add the Zabbix user, which is installed by default, to the docker group.

$ sudo usermod -aG docker zabbix

Step 5 – ReStart a Zabbix Agent

$ sudo systemctl restart zabbix-agent2
$ sudo systemctl enable zabbix-agent2
$ sudo systemctl status zabbix-agent2

Step 6 – Add the Docker Host to Zabbix Server for Monitoring

Step 7 – Add the Docker Host with zabbix template “Docker by Zabbix agent”

Zabbix host form for docker with Docker by Zabbix agent 2 template, agent IP and port 10050 circled

Step 8 – Create a few Dummy containers in Docker host

$ docker run -itd ubuntu
$ docker run -itd ubuntu
$ docker run -itd ubuntu

Step 9 – Validate Docker metrices at Zabbix front end Latest data.

Now head back to the Zabbix server dashboard. Click on ‘Monitoring’ then ‘Hosts’. Click on the name of your Docker server and in the menu option that appears, select ‘Latest data’.

Zabbix Latest data for docker host listing container CPU, memory and status metrics with last check times

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
I'm Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms. I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.

Related Posts

Zabbix Tutorials: Example of zabbix_proxy.conf

The example above is the full, commented sample zabbix_proxy.conf shipped with Zabbix 7.0. It includes 7.0-only options such as ProxyBufferMode, ProxyMemoryBufferSize and the asynchronous agent, HTTP and…

Read More

Zabbix Tutorials: Example of zabbix_agentd.win.conf

zabbix_agentd.win.conf is the sample configuration file that comes with the classic Zabbix agent for Windows. The file above is the stock sample from a recent release, but…

Read More

Zabbix Tutorials: Example of zabbix_agentd.conf

zabbix_agentd.conf is the configuration file for the classic Zabbix agent on Linux and Unix. It sets which Zabbix servers may poll the agent, where it sends active…

Read More

Zabbix Tutorials: Example of zabbix_agent2.win.conf

The example above is the stock zabbix_agent2.win.conf that ships with Zabbix agent 2 for Windows. Nearly every line is a comment that documents a default value. Only…

Read More

Step by Step Guide to Monitor PostGreSQL using Zabbix Agent

To monitor PostgreSQL with the classic Zabbix agent, you install the agent on the database host, create a read-only monitoring role, and deploy the user parameters and…

Read More

Ansible Playbook for Zabbix Agent Deployment

This page shows an Ansible playbook that installs and configures Zabbix agent 6.0 on CentOS and RHEL hosts. Below the original playbook you will find a corrected,…

Read More
Subscribe
Notify of
guest
1 Comment
Newest
Oldest Most Voted
fellani
fellani
2 years ago

Thanks for the thorough tutorial Rajesh. Would you also show how you added “Rajesh Zabbix” on the left side panel under the Zabbix logo? Mine says Zabbix docker and I want to change it—many thanks for considering my request.

1
0
Would love your thoughts, please comment.x
()
x