Skip to content

Latest commit

 

History

History

dockerized

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Zabbix Docker

Running Zabbix with Docker

Notes

Multiple docker images are available for Zabbix to suit a range of deployment topologies.

The Zabbix Appliance image is the basic all-in-one, good for local testing.

Running the Zabbix Appliance

The docker-compose.yml is setup for running Zabbix appliance with MySQL data persisted in a volume.

It also starts a separate zabbix agent container that can monitor the zabbix appliance container itself. The agent container is linked the the server container so that the agent can perform active checks.

$ docker-compose up -d

On first startup, the web interface will be available on 0.0.0.0:80 with default credentials Admin/zabbix

initial_dashboard

$ docker ps
CONTAINER ID        IMAGE                            COMMAND                  CREATED             STATUS              PORTS                                                   NAMES
251884f1a063        zabbix/zabbix-appliance:latest   "/sbin/tini -- /usr/…"   5 minutes ago       Up 5 minutes        0.0.0.0:80->80/tcp, 0.0.0.0:10051->10051/tcp, 443/tcp   dockerized_zabbix-app_1
2083160a135f        zabbix/zabbix-agent:latest       "/sbin/tini -- /usr/…"   5 minutes ago       Up 5 minutes        10050/tcp                                               dockerized_zabbix-agent_1

The agent hostname needed to be updated in order to find the agent container at zabbix-agent:10050:

agent_configured

Now we have basic monitoring of the zabbix server via the zabbix agent:

updated_dashboard

zabbix_server_activity

Shutting down and checking volumes

$ docker-compose down
$ docker volume ls | grep zapp
local               dockerized_zapp-db

The zabbix_control.sh wraps up some simple commands to start and stop the appliance container, get logs and open a shell.

Credits and References