Skip to content

ShawnSack/zabbix-community-docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Zabbix Community Dockerfiles

Zabbix Github repo is intended as a source for Zabbix Docker registry. Please use these community Zabbix Docker images, if you want to [build/ship your own Zabbix Docker image] (https://github.com/zabbix/zabbix-community-docker#how-to-build-own-docker-image).

Available images

See [README of zabbix-server-2.4] (https://github.com/zabbix/zabbix-community-docker/tree/master/Dockerfile/zabbix-server-2.4) for more details.

Compiled zabbix-server with almost all features (MySQL support, Java, SNMP, Curl, Ipmi, fping) and Zabbix web UI based on CentOS 7, Supervisor, Nginx, PHP. Image requires external MySQL database (you can run MySQL also as Docker container).

See [README of zabbix-db-mariadb] (https://github.com/zabbix/zabbix-community-docker/tree/master/Dockerfile/zabbix-db-mariadb) for more details.

MariaDB container customized for Zabbix.

See [README of zabbix-server-3.0] (https://github.com/zabbix/zabbix-community-docker/tree/master/Dockerfile/zabbix-server-3.0) for more details.

NOT FOR PRODUCTION - Compiled zabbix-server with almost all features (MySQL support, Java, SNMP, Curl, Ipmi, fping) and Zabbix web UI based on CentOS 7, Supervisor, Nginx, PHP. Image requires external MySQL database (you can run MySQL also as Docker container).

Docker troubleshooting

Use docker command to see if all required containers are up and running:

$ docker ps -f

Check online logs of Zabbix container:

$ docker logs zabbix

Attach to running Zabbix container (to detach the tty without exiting the shell, use the escape sequence Ctrl+p + Ctrl+q):

$ docker attach zabbix

Sometimes you might just want to review how things are deployed inside a running container, you can do this by executing a bash shell through docker's exec command:

docker exec -ti zabbix /bin/bash

History of an image and size of layers:

docker history --no-trunc=true zabbix/zabbix-server-2.4 | tr -s ' ' | tail -n+2 | awk -F " ago " '{print $2}'

Run specific Zabbix version, e.g. 2.4.4 - just specify 2.4.4 tag for image:

	docker run \
		-d \
		--name zabbix \
		-p 80:80 \
		-p 10051:10051 \
		--env="ZS_DBHost=database_ip" \
		--env="ZS_DBUser=username" \
		--env="ZS_DBPassword=my_password" \
		zabbix/zabbix-server-2.4:2.4.4

How to build own Docker image

It's easy to build customized image on top of this base community image. You will need to specify only FROM definition in your Dockerfile. For example: if you want to use always the latest available version, then please use:

FROM zabbix/zabbix-server-2.4:latest

Recommended example how to build custom Zabbix server on top of base image is million12/docker-zabbix-server. It provides custom features, such as Push notification, Slack and SMTP auth.

About Docker

About

Dockerfiles for community Docker Zabbix images

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 91.6%
  • Nginx 4.9%
  • PHP 2.2%
  • Python 1.3%