# 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

# What is Zabbix Java Gateway?

Zabbix Java Gateway performs native support for monitoring JMX applications. Java gateway accepts incoming connection from Zabbix server or Zabbix proxy and can only be used as a "passive proxy".

# Zabbix Java Gateway images

These are the only official Zabbix Java Gateway Podman images. Images are updated when new releases are published.

# How to use this image

## Start `zabbix-java-gateway`

Start a Zabbix Java Gateway container as follows:

    podman run --name some-zabbix-java-gateway -d zabbix/zabbix-java-gateway:tag

Where `some-zabbix-java-gateway` is the name you want to assign to your container and `tag` is the tag specifying the version you want.

## Linking the container to Zabbix server or Zabbix proxy

    podman run --name some-zabbix-java-gateway --link some-zabbix-server:zabbix-server -d zabbix/zabbix-java-gateway:tag

## Container shell access and viewing Zabbix Java Gateway logs

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-java-gateway` container:

    $ podman exec -ti some-zabbix-java-gateway /bin/bash

The Zabbix Java Gateway log is available through Podman's container log:

    $ podman logs  some-zabbix-java-gateway

## Environment Variables

When you start the `zabbix-java-gateway` image, you can adjust the configuration of the Zabbix Java Gateway by passing one or more environment variables on the `podman run` command line.

### `ZBX_START_POLLERS`

This variable is specified amount of pollers. By default, value is `5`.

### `ZBX_TIMEOUT`

This variable is used to specify timeout for outgoing connections. By default, value is `3`.

### `ZBX_DEBUGLEVEL`

This variable is used to specify log level. By default, value is `info`. The variable allows next values: `trace`, `debug`, `info`, `want`, `error`, `all`, `off`

### `ZBX_PROPERTIES_FILE`

Name of properties file. Can be used to set additional properties using a key-value format in such a way that they are not visible on a command line or to overwrite existing ones.

### `ZABBIX_OPTIONS`

Additional arguments for Zabbix Java Gateway. Useful to enable additional libraries and features.

## Allowed volumes for the Zabbix Java Gateway container

### `/usr/sbin/zabbix_java/ext_lib`

The volume allows include additional JAR files to extend allowed protocols for Zabbix Java Gateway.

# User Feedback

## Documentation

Documentation for this image is stored in the `java-gateway/` 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.

## Issues

If you have any problems with or questions about this image, please contact us through a GitHub issue.

### Known issues

## 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.