Added missing ZBX_SERVER for Java Gateway
This commit is contained in:
parent
9f0b64527e
commit
29e5fe8f9f
|
|
@ -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.
|
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`
|
### `ZBX_START_POLLERS`
|
||||||
|
|
||||||
This variable is specified amount of pollers. By default, value is `5`.
|
This variable is specified amount of pollers. By default, value is `5`.
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,8 @@
|
||||||
</code></pre>
|
</code></pre>
|
||||||
<h3>Environment Variables</h3>
|
<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>
|
<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>
|
<h4><code>ZBX_START_POLLERS</code></h4>
|
||||||
<p>This variable is specified amount of pollers. By default, value is <code>5</code>.</p>
|
<p>This variable is specified amount of pollers. By default, value is <code>5</code>.</p>
|
||||||
<h4><code>ZBX_TIMEOUT</code></h4>
|
<h4><code>ZBX_TIMEOUT</code></h4>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
# ZBX_LISTEN_IP=
|
# ZBX_LISTEN_IP=
|
||||||
# ZBX_LISTEN_PORT=10052
|
# ZBX_LISTEN_PORT=10052
|
||||||
|
ZBX_SERVER=zabbix-server
|
||||||
# ZBX_START_POLLERS=5
|
# ZBX_START_POLLERS=5
|
||||||
# ZBX_TIMEOUT=3
|
# ZBX_TIMEOUT=3
|
||||||
# Possible values: trace, debug, info, warn, error, all, off
|
# Possible values: trace, debug, info, warn, error, all, off
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@ run_service() {
|
||||||
"-Dzabbix.timeout=${ZBX_TIMEOUT}"
|
"-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_LISTEN_IP:-}" ]] && zabbix_opts+=("-Dzabbix.listenIP=${ZBX_LISTEN_IP}")
|
||||||
[[ -n "${ZBX_START_POLLERS:-}" ]] && zabbix_opts+=("-Dzabbix.startPollers=${ZBX_START_POLLERS}")
|
[[ -n "${ZBX_START_POLLERS:-}" ]] && zabbix_opts+=("-Dzabbix.startPollers=${ZBX_START_POLLERS}")
|
||||||
[[ -n "${ZBX_PROPERTIES_FILE:-}" ]] && zabbix_opts+=("-Dzabbix.propertiesFile=${ZBX_PROPERTIES_FILE}")
|
[[ -n "${ZBX_PROPERTIES_FILE:-}" ]] && zabbix_opts+=("-Dzabbix.propertiesFile=${ZBX_PROPERTIES_FILE}")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue