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 web service for performing various tasks using headless web browser (for example, reporting).
These are the only official Zabbix web service Podman images. Images are updated when new releases are published.
zabbix-web-service
Start a Zabbix web service container as follows:
podman run --name some-zabbix-web-service -e ZBX_ALLOWEDIP="some-zabbix-server" --cap-add=SYS_ADMIN -d zabbix/zabbix-web-service:tag
Where some-zabbix-web-service
is the name you want to assign to your container, some-zabbix-server
is IP or DNS name of Zabbix server and tag
is the tag specifying the version you want.
This image exposes the standard Zabbix web service port (10053
) to perform communication, so container linking makes Zabbix web service instance available to Zabbix server containers. Start your application container like this in order to link it to the Zabbix web service container:
$ podman run --name some-zabbix-server --link some-zabbix-web-service:zabbix-web-service -e ZBX_STARTREPORTWRITERS="2" -e ZBX_WEBSERVICEURL="http://some-zabbix-web-service:10053/report" -d zabbix/zabbix-server:latest
The podman exec
command allows you to run commands inside a Podman container. The following command line will give you a bash shell inside your zabbix-web-service
container:
$ podman exec -ti some-zabbix-web-service /bin/bash
The Zabbix web service log is available through Podman's container log:
$ podman logs some-zabbix-web-service
When you start the zabbix-web-service
image, you can adjust the configuration of the Zabbix web service by passing one or more environment variables on the podman run
command line.
ZBX_ALLOWEDIP
This variable is IP or DNS name or list of IP / DNS names of Zabbix server. By default, value is zabbix-server
.
ZBX_LISTENPORT
Listen port for incoming request. By default, value is 10053
.
ZBX_DEBUGLEVEL
The variable is used to specify debug level. By default, value is 3
. It is DebugLevel
parameter in zabbix_web_service.conf
. Allowed values are listed below:
0
- basic information about starting and stopping of Zabbix processes;1
- critical information2
- error information3
- warnings4
- for debugging (produces lots of information)5
- extended debugging (produces even more information)ZBX_TIMEOUT
The variable is used to specify timeout for processing requests. By default, value is 3
.
Additionally the image allows to specify many other environment variables listed below:
ZBX_TLSACCEPT=unencrypted
ZBX_TLSCAFILE=
ZBX_TLSCERTFILE=
ZBX_TLSKEYFILE=
ZBX_IGNOREURLCERTERRORS=0
Default values of these variables are specified after equal sign.
Please use official documentation for zabbix_web_service.conf
to get more information about the variables.
/var/lib/zabbix/enc
The volume is used to store TLS related files. These file names are specified using ZBX_TLSCAFILE
, ZBX_TLSCERTFILE
and ZBX_TLSKEY_FILE
variables.
Documentation for this image is stored in the web-service/
directory of the zabbix/zabbix-docker
GitHub repo. Be sure to familiarize yourself with the repository's README.md
file before attempting a pull request.
If you have any problems with or questions about this image, please contact us through a GitHub issue.
Zabbix web services uses Google Chromium with headless mode. Because of restrictions you may see the following error during report generation:
Failed to move to new namespace: PID namespaces supported, Network namespace supported, but failed: errno = Operation not permitted
To avoid the issue it is required to add SYS_ADMIN
capability for Zabbix web service. The capability is redundant and allow too much.
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.