Skip to content
Proyectos

zabbix/zabbix-docker

Ver en GitHub

Acerca de

Dockerfiles oficiales de Zabbix

Sistemas e infraestructura

Cómo se miden estas cifras

Crecimiento de estrellas medido

in 24h
+1
in 7 days
+3
in 15 days
+6
in 1 month
+17

Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.

README.md

Original

Zabbix Logo

OpenSSF Scorecard Quality Gate Status

Build images (DockerHub) Build images (DockerHub, Windows)

What is Zabbix?

Zabbix is an enterprise-class open source distributed monitoring solution.

Zabbix is software that monitors numerous parameters of a network and the health and integrity of servers. Zabbix uses a flexible notification mechanism that allows users to configure e-mail based alerts for virtually any event. This allows a fast reaction to server problems. Zabbix offers excellent reporting and data visualisation features based on the stored data. This makes Zabbix ideal for capacity planning.

For more information and related downloads for Zabbix components, please visit https://hub.docker.com/u/zabbix/ and https://zabbix.com

Zabbix Dockerfiles

This repository contains Dockerfile of Zabbix for Docker's automated build published to the public Docker Hub Registry.

Base Docker Image

Compatibility notes

[!IMPORTANT] Starting with Zabbix 8.0, ZBX_SSO_SP_KEY, ZBX_SSO_SP_CERT and ZBX_SSO_IDP_CERT contain inline key or certificate data instead of file paths. Use ZBX_SSO_SP_KEYFILE, ZBX_SSO_SP_CERTFILE and ZBX_SSO_IDP_CERTFILE to specify file paths. Files with the previously recognized fixed names (sp.key, sp.crt, idp.crt, vault.crt and vault.key) are no longer detected automatically; specify them explicitly using the corresponding *FILE variables.

[!IMPORTANT] Starting with Zabbix 8.0, mounted secret files have a common layout under /run/zabbix/secrets: tls, apm, database, vault, sso, ssl and providers. Mount only the required subdirectories. The bundled Compose configuration maps them from the matching ${DATA_DIRECTORY}/run/zabbix/secrets subdirectories and keeps the deprecated mounts as commented examples for temporary migration. An absolute ZBX_*FILE path is used unchanged; a relative path is resolved in its component-specific subdirectory. Where a previous relative-location contract existed, it remains supported with a warning. Database secrets and all *_FILE value secrets also support the standard /run/secrets directory, which takes precedence when the same relative name exists in both locations.

Usage

There is some documentation and examples in the official Zabbix Documentation!

Please also follow usage instructions of each Zabbix component image:

Docker Compose

[!NOTE] The following requires make and docker compose version 2.24.0 or greater.

You can use the Docker Compose files for MySQL or MariaDB, and PostgreSQL (compose.yaml and compose_pgsql.yaml, respectively) directly with the docker compose command. The required images and the Compose file behavior can be configured through environment variables and the .env file. By default, Alpine-based images and the latest version from the current branch are used.

In addition, a Makefile is provided to configure and run the required Docker Compose files, supporting a variety of base operating system and database engine combinations, as well as to build Zabbix components locally.

To get started clone this repository and then from the root directory of the repository run:

make help

To start with the default configuration run:

make up

Use variables to customize the configuration to suit your needs. For example, the following selects Postgres as the underlying database, alpine as the base OS, and exposes the web interface on ports 8282 and 8443:

make up DB=pgsql OS=alpine ZABBIX_WEB_NGINX_HTTP_PORT=8282 ZABBIX_WEB_NGINX_HTTPS_PORT=8443

Then to clean up run:

make down DB=pgsql

The full and all Compose profiles include both zabbix-agent and zabbix-agent2. To start just one agent, specify its service name, for example docker compose up -d zabbix-agent2.

Configure the agents separately in env_vars/.env_agent and env_vars/.env_agent2.

The examples directory contains overlays for the common Compose stack:

Kubernetes

The kubernetes.yaml example deploys Zabbix server with MySQL, Nginx-based web-interface, proxies for MySQL and SQLite, Java gateway, Web-service, SNMP traps and Zabbix agent. Zabbix agent runs as a privileged DaemonSet and requires the cluster to allow privileged pods.

Zabbix Agent 2, MCP Server, Bridge Adapter, external history and telemetry storage, and Selenium require separate manifests.

Issues and Wiki

Be sure to check the Wiki-page on common problems and questions. If you still have problems with or questions about the images, please contact us through a GitHub issue.

[!NOTE] Please report here issues and feature requests related to Docker images only. If you have issues or ideas how to improve Zabbix, use official bug tracker.

Contributing

You are invited to contribute new features, fixes, or updates, large or small; we are always thrilled to receive pull requests, and do our best to process them as fast as we can.

Before you start to code, we recommend discussing your plans through a GitHub issue, especially for more ambitious contributions. This gives other contributors a chance to point you in the right direction, give you feedback on your design, and help you find out if someone else is working on the same thing.

License

Starting from Zabbix version 7.0, all subsequent Zabbix versions will be released under the GNU Affero General Public License version 3 (AGPLv3). You can modify the relevant version and propagate such modified version under the terms of the AGPLv3 as published by the Free Software Foundation.

For additional details, including answers to common questions about the AGPLv3, see the generic FAQ from the Free Software Foundation.

Zabbix is Open Source Software, however, if you use Zabbix in a commercial context we kindly ask you to support the development of Zabbix by purchasing some level of technical support. All previous Zabbix software versions up to 6.4 are released under the GNU General Public License version 2 (GPLv2). The formal terms of the GPLv2 and AGPLv3 can be found at http://www.fsf.org/licenses/.

Zabbix Bridge Adapter is proprietary software licensed under the Zabbix Mobile App End User License Agreement (EULA), not under GPLv2 or AGPLv3. The source code of Zabbix Bridge Adapter is not made available or distributed.

See the current published EULA and the Zabbix Bridge Adapter image documentation for license acceptance instructions.

Unless otherwise noted, files in this repository are licensed under the GNU Affero General Public License version 3 (AGPLv3). Third-party components remain subject to their respective licenses.

Explorar proyectos relacionados

Cargando…