Added missing ZBX_SERVER for Java Gateway

This commit is contained in:
Alexey Pustovalov 2026-07-24 22:39:53 +09:00
parent 9f0b64527e
commit 29e5fe8f9f
4 changed files with 8 additions and 0 deletions

View file

@ -60,6 +60,10 @@ $ docker logs some-zabbix-java-gateway
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 `docker run` command line.
### `ZBX_SERVER`
Comma-delimited list of IP addresses, CIDR networks or DNS names of Zabbix servers and proxies allowed to connect to Java Gateway. If unset or empty, connections are accepted from all hosts.
### `ZBX_START_POLLERS`
This variable is specified amount of pollers. By default, value is `5`.

View file

@ -29,6 +29,8 @@
</code></pre>
<h3>Environment Variables</h3>
<p>When you start the <code>zabbix-java-gateway</code> image, you can adjust the configuration of the Zabbix Java Gateway by passing one or more environment variables on the <code>podman run</code> command line.</p>
<h4><code>ZBX_SERVER</code></h4>
<p>Comma-delimited list of IP addresses, CIDR networks or DNS names of Zabbix servers and proxies allowed to connect to Java Gateway. If unset or empty, connections are accepted from all hosts.</p>
<h4><code>ZBX_START_POLLERS</code></h4>
<p>This variable is specified amount of pollers. By default, value is <code>5</code>.</p>
<h4><code>ZBX_TIMEOUT</code></h4>

View file

@ -1,5 +1,6 @@
# ZBX_LISTEN_IP=
# ZBX_LISTEN_PORT=10052
ZBX_SERVER=zabbix-server
# ZBX_START_POLLERS=5
# ZBX_TIMEOUT=3
# Possible values: trace, debug, info, warn, error, all, off

View file

@ -36,6 +36,7 @@ run_service() {
"-Dzabbix.timeout=${ZBX_TIMEOUT}"
)
[[ -n "${ZBX_SERVER:-}" ]] && zabbix_opts+=("-Dzabbix.server=${ZBX_SERVER}")
[[ -n "${ZBX_LISTEN_IP:-}" ]] && zabbix_opts+=("-Dzabbix.listenIP=${ZBX_LISTEN_IP}")
[[ -n "${ZBX_START_POLLERS:-}" ]] && zabbix_opts+=("-Dzabbix.startPollers=${ZBX_START_POLLERS}")
[[ -n "${ZBX_PROPERTIES_FILE:-}" ]] && zabbix_opts+=("-Dzabbix.propertiesFile=${ZBX_PROPERTIES_FILE}")