Connects Zabbix mobile applications to on-premise Zabbix installations via Zabbix Bridge
870

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 Bridge Adapter connects a Zabbix installation to Zabbix Bridge for use with the Zabbix mobile application.
These are the only official Zabbix Bridge Adapter Docker images. They are based on distroless static (Debian 13) and Red Hat UBI Micro 10 images. The available versions of Zabbix Bridge Adapter are:
Zabbix Bridge Adapter 8.0 (tags: distroless-8.0-latest, rhel-8.0-latest, distroless-latest, rhel-latest, latest)
Zabbix Bridge Adapter 8.0.* (tags: distroless-8.0.*, rhel-8.0.*)
Zabbix Bridge Adapter 8.2 (tags: distroless-trunk, rhel-trunk)
The image with latest tag is based on the distroless static image.
zabbix-bridge-adapterZabbix server and the Zabbix frontend must be available. Obtain the Server ID from Reports > System information in the target Zabbix frontend.
The examples use an existing Docker network named zabbix-backend, shared with Zabbix server. The network must provide access to the Zabbix API and Zabbix Bridge.
Read the bundled Zabbix Mobile App End User License Agreement (EULA) before accepting it:
$ docker run --rm zabbix/zabbix-bridge-adapter:tag zabbix_bridge_adapter license show | less
Here and below, tag specifies the image version. Use the same image version for license acceptance and service startup.
If you agree to the terms, create bridge-adapter.env with the EULA version shown by the command and the values for your installation:
ZBX_EULAVERSION=<reviewed EULA version>
ZBX_SERVERID=<Server ID from the Zabbix frontend>
ZBX_ZABBIXAPIURL=http://zabbix-web-nginx:8080/api_jsonrpc.php
ZBX_ZABBIXAPITLSCONNECT=disabled
For an HTTPS API URL, configure the TLS variables described below. Configure ZBX_ALLOWEDAPIMETHODS_<N> in the same file to allow the API methods required by the mobile application.
Accept the EULA using a persistent data volume:
$ docker run --rm --network none --read-only \
--tmpfs /run/zabbix/secrets_internal:mode=770,uid=1997,gid=0 \
--env-file bridge-adapter.env \
--volume zabbix-bridge-adapter-data:/var/lib/zabbix/bridge-adapter \
zabbix/zabbix-bridge-adapter:tag accept-license
This command records acceptance of the specified EULA version and exits. Review and accept the terms again if the bundled EULA changes.
zabbix-bridge-adapterStart a Zabbix Bridge Adapter container using the same environment file and data volume:
$ docker run --name some-zabbix-bridge-adapter \
--network zabbix-backend \
--read-only --tmpfs /tmp \
--tmpfs /run/zabbix/secrets_internal:mode=770,uid=1997,gid=0 \
--env-file bridge-adapter.env \
--volume zabbix-bridge-adapter-data:/var/lib/zabbix/bridge-adapter \
-d zabbix/zabbix-bridge-adapter:tag
Where some-zabbix-bridge-adapter is the name you want to assign to your container and tag specifies the image version.
Connect Zabbix server to the same network and set its ZBX_BRIDGEADAPTERURL variable to:
http://some-zabbix-bridge-adapter:10054/rpc
Use an HTTPS URL when TLS is enabled on the Adapter listener.
The distroless image contains no shell. View the container log as follows:
$ docker logs some-zabbix-bridge-adapter
When you start the zabbix-bridge-adapter image, you can adjust the configuration by passing environment variables on the docker run command line or using --env-file.
ZBX_EULAVERSIONExact version of the reviewed EULA to accept. The value must match the version displayed by zabbix_bridge_adapter license show. The variable is used only by the EULA acceptance step; setting it does not accept the EULA during normal Adapter startup.
ZBX_SERVERIDFull Server ID displayed under Reports > System information in the target Zabbix frontend. This variable is required.
ZBX_ZABBIXAPIURLURL of the target Zabbix JSON-RPC API endpoint, for example https://zabbix.example.com/api_jsonrpc.php. This variable is required.
ZBX_ZABBIXBRIDGEURLURL used to retrieve the Zabbix Bridge configuration. By default, value is https://config.mobilebridge.zabbix.com/.well-known/bridge-configuration.
ZBX_ZABBIXAPITLSCONNECTTLS mode used for outbound connections to the Zabbix API. Supported values are:
disabled - use plain HTTP;required - use HTTPS without certificate verification;verify_ca - use HTTPS and verify the certificate issuer;verify_full - use HTTPS and verify the certificate issuer and hostname.Use disabled for an HTTP API URL. The default is required for HTTPS.
ZBX_ZABBIXAPITLSCAFILE, ZBX_ZABBIXAPITLSCAZBX_ZABBIXAPITLSCAFILE specifies the CA file used to verify the Zabbix API certificate. A relative path is resolved against /run/zabbix/secrets/tls. Alternatively, ZBX_ZABBIXAPITLSCA provides the CA certificate content directly. A CA is required when ZBX_ZABBIXAPITLSCONNECT is set to verify_ca or verify_full.
ZBX_LISTENIPIP address or hostname on which Bridge Adapter accepts requests from Zabbix server. By default, all available addresses are used.
ZBX_LISTENPORTPort on which Bridge Adapter accepts requests from Zabbix server. By default, value is 10054. The RPC endpoint is available at /rpc.
ZBX_LISTENHEALTHPORTPort exposing the /health and /ready endpoints. By default, value is 8081. The container health check uses /ready; the container becomes healthy when the Adapter is ready to handle requests.
ZBX_DEBUGLEVELThe variable is used to specify debug level. By default, value is 3. Allowed values are listed below:
0 - basic information about starting and stopping of Zabbix processes1 - critical information2 - error information3 - warnings4 - for debugging (produces lots of information)5 - extended debugging (produces even more information)ZBX_ALLOWEDAPIMETHODS_<N>Zabbix API methods that Bridge Adapter is allowed to call. Specify each method in a separate variable, using consecutive indexes starting with 0. Each entry is either an exact method name, resource.* or *.method:
ZBX_ALLOWEDAPIMETHODS_0=apiinfo.version
ZBX_ALLOWEDAPIMETHODS_1=host.get
If no variables are specified, the default deny-all policy applies and the Zabbix mobile application cannot use the Adapter. The minimal set of methods the mobile application currently needs is:
ZBX_ALLOWEDAPIMETHODS_0=apiinfo.version
ZBX_ALLOWEDAPIMETHODS_1=device.onboard
ZBX_ALLOWEDAPIMETHODS_2=device.offboard
ZBX_ALLOWEDAPIMETHODS_3=user.get
ZBX_ALLOWEDAPIMETHODS_4=role.get
ZBX_ALLOWEDAPIMETHODS_5=problem.get
ZBX_ALLOWEDAPIMETHODS_6=event.get
ZBX_ALLOWEDAPIMETHODS_7=event.acknowledge
ZBX_ALLOWEDAPIMETHODS_8=trigger.get
ZBX_ALLOWEDAPIMETHODS_9=alert.get
ZBX_ALLOWEDAPIMETHODS_10=host.get
ZBX_ALLOWEDAPIMETHODS_11=hostgroup.get
The Adapter listener supports the following TLS variables:
ZBX_TLSMODE=none
ZBX_TLSCAFILE=
ZBX_TLSCA=
ZBX_TLSCERTFILE=
ZBX_TLSCERT=
ZBX_TLSKEYFILE=
ZBX_TLSKEY=
ZBX_TLSALLOWEDCN=
/var/lib/zabbix/bridge-adapterThe volume stores persistent Adapter data and EULA acceptance. Use the same writable volume for license acceptance and service startup. For a bind mount, create the directory beforehand and grant access to UID 1997. Run both containers with the same UID.
/run/zabbix/secrets/tlsThe volume provides TLS files referenced by the ZBX_TLSCAFILE, ZBX_TLSCERTFILE, ZBX_TLSKEYFILE and ZBX_ZABBIXAPITLSCAFILE variables. Mount it read-only.
Documentation for this image is stored in the bridge-adapter/ 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.
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.
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.
The current published EULA may differ from the version bundled with your image. Review the bundled EULA at /licenses/Zabbix-Mobile-App-EULA.txt. Startup requires explicit acceptance of that version.
The image contains the following license files:
/licenses/Zabbix-Mobile-App-EULA.txt - the EULA bundled with Zabbix Bridge Adapter;/licenses/bridge-adapter-THIRD-PARTY-NOTICES.txt - notices for the Adapter runtime dependencies;/licenses/go-THIRD-PARTY-NOTICES.txt - the Go runtime and standard library license and patent notice.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.
Content type
Image
Digest
sha256:f066681d3…
Size
11 MB
Last updated
about 1 hour ago
docker pull zabbix/zabbix-bridge-adapterPulls:
47
Nov 9 to Nov 15