zabbix/zabbix-docker
소개
Zabbix 공식 Dockerfile
시스템 및 인프라측정된 스타 증가
- in 24h
- +1
- in 7 days
- +3
- in 15 days
- +6
- in 1 month
- +17
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Original
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_CERTandZBX_SSO_IDP_CERTcontain inline key or certificate data instead of file paths. UseZBX_SSO_SP_KEYFILE,ZBX_SSO_SP_CERTFILEandZBX_SSO_IDP_CERTFILEto specify file paths. Files with the previously recognized fixed names (sp.key,sp.crt,idp.crt,vault.crtandvault.key) are no longer detected automatically; specify them explicitly using the corresponding*FILEvariables.
[!IMPORTANT] Starting with Zabbix 8.0, mounted secret files have a common layout under
/run/zabbix/secrets:tls,apm,database,vault,sso,sslandproviders. Mount only the required subdirectories. The bundled Compose configuration maps them from the matching${DATA_DIRECTORY}/run/zabbix/secretssubdirectories and keeps the deprecated mounts as commented examples for temporary migration. An absoluteZBX_*FILEpath 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*_FILEvalue secrets also support the standard/run/secretsdirectory, 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:
- zabbix-agent - Zabbix agent
- zabbix-agent2 - Zabbix agent 2
- zabbix-server-mysql - Zabbix server with MySQL or MariaDB database support
- zabbix-server-pgsql - Zabbix server with PostgreSQL database support
- zabbix-web-apache-mysql - Zabbix web interface on Apache2 web server with MySQL or MariaDB database support
- zabbix-web-apache-pgsql - Zabbix web interface on Apache2 web server with PostgreSQL database support
- zabbix-web-nginx-mysql - Zabbix web interface on Nginx web server with MySQL or MariaDB database support
- zabbix-web-nginx-pgsql - Zabbix web interface on Nginx web server with PostgreSQL database support
- zabbix-proxy-sqlite3 - Zabbix proxy with SQLite3 database support
- zabbix-proxy-mysql - Zabbix proxy with MySQL or MariaDB database support
- zabbix-java-gateway - Zabbix Java Gateway
- zabbix-mcp-server - Zabbix MCP server connects AI agents to the Zabbix API through the Model Context Protocol (MCP)
- zabbix-web-service - Zabbix web service for performing various tasks using headless web browser (for example, reporting)
- zabbix-snmptraps - Additional container image for Zabbix server and Zabbix proxy to support SNMP traps
Docker Compose
[!NOTE] The following requires
makeanddocker composeversion 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:
- APM
- Vault
- Mixed history providers
- Zabbix TLS and PSK
- Zabbix server HA
- Web TLS
- Database TLS
- Database granular permissions
- MCP server
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.
관련 프로젝트 살펴보기
불러오는 중…