Monitor the Docker container and SystemD process on the same host with Zabbix on Ubuntu.

environment

thing Version
Ubuntu 20.04 LTS
Zabbix 5.0.4
zabbix-agent2 unknown,now 1:5.0.4-1+focal amd64
Docker 19.03.12
MariaDb Ver 8.0.21-0ubuntu0.20.04.4 for Linux on x86_64 ((Ubuntu))

Install Zabbix 5

https://www.zabbix.com/jp/download?zabbix=5.0&os_distribution=ubuntu&os_version=20.04_focal&db=mysql&ws=nginx

Install with this procedure

Installation of Zabbix-Agent2

apt install zabbix-agent2

Stop zabbix-agent

systemctl stop zabbix-agent.service
systemctl disable zabbix-agent.service

Make Docker sock files readable

Add zabbix user to docker group.

gpasswd -a zabbix docker

Reference: Docker monitoring using Zabbix agent 2


At this point, Zabbix-Web-Server-> Zabbix-Server-> Zabbix-Agent2 should be able to communicate.

About Systemd Service monitoring by Zabbix Agent 2

https://tech-lab.sios.jp/archives/18664

Zabbix Agent2 Discovery Official reference below 7 DISCOVERY OF SYSTEMD SERVICES

Zabbix Agent2 Metrics Official reference below

ZABBIX AGENT 2 / ITEM KEYS

Recommended Posts

Monitor the Docker container and SystemD process on the same host with Zabbix on Ubuntu.
Put Zabbix in Ubuntu with Docker and monitor Docker on the same host
Install docker and docker-compose on ubuntu in the shortest process
Time is wrong with the application launched on the Docker container
Until you build the docker environment and start / stop the Ubuntu container
Install Ubuntu20.04 on RaspberryPi 4 and build Kubernetes to run the container
Organize communication in an environment that uses various resources on the host machine and Docker container
Run NordVPN on Docker (Windows) Ubuntu container
Run Ubuntu + ROS with Docker on Mac
How to share on the host side (windows) and guest side (CentOS 7) with VirtualBox
[Docker] Check the running container and enter there
Display the System Monitor applet on the Ubuntu 20.04 taskbar
Keep docker container running with no resident process running
Update container image with KUSANAGI Runs on Docker
Docker on Ubuntu18.04 on WSL2 and VSCode installation instructions
How to build a Jenkins server with a Docker container on CentOS 7 of VirtualBox and access the Jenkins server from a local PC
What to do when booting Ubuntu on WSL2 and getting "Process terminated with code 1"
Create a Java (Gradle) project with VS Code and develop it on a Docker container
[Docker] How to update using a container on Heroku and how to deal with Migrate Error
Proceed with the official Rust documentation on a Docker container (2. Program a number guessing game)
Create a Java (Maven) project with VS Code and develop it on a Docker container
Form and process file and String data at the same time with Spring Boot + Java
Systemctl cannot be used on Ubuntu inside Docker container
Access and debug Circle CI Docker container with ssh
Run the Android emulator on Docker using Android Emulator Container Scripts
Display ROS application on Docker with GUI on host side
Install rbenv with apt on ubuntu and put ruby
Prepare the environment for java11 and javaFx with Ubuntu 18.4
The story of pushing a Docker container to GitHub Package Registry and Docker Hub with GitHub Actions
Access Web API on Android with Get and process Json (Java for the time being)
Workspace setting location when connecting remotely with VS Code and working on a Docker container
Build Zabbix on Ubuntu 20.04
Proceed with Rust official documentation on Docker container (1. Getting started)
Copy and paste the file contents in Ubuntu's Docker container
The key to running Docker on Raspberry Pi 4 (Ubuntu server 20.04)
Wait for the container service to start with docker healthcheck
[Docker] Delete only the volume associated with a specific container
How to run React and Rails on the same server
Set up Django on Ubuntu 16.04 with PostgreSQL and Gunicorn on ECS
[Docker] How to access the host from inside the container. http://host.docker.internal:
The story of fighting ubuntu errors 0x80370114, 0x80000000 to enable docker desktop with wsl2 on windows10 home