Zabbix Documentation 4.0

3.04.04.4 (current)| In development:5.0 (devel)| Unsupported:1.82.02.22.43.23.44.2Guidelines

User Tools

Site Tools

This translation is older than the original page and might be outdated. See what has changed.

Sidebar

zh:manual:appendix:config:zabbix_java

5 Zabbix Java 网关

5 Zabbix Java gateway

如果使用 startup.shshutdown.sh 脚本启动和停止 Zabbix Java 网关, 那么就可以在settings.sh文件中指定必要的配置参数。startup 和shutdown 脚本以配置文件为输入源 ,并且将shell 变量 (第一列) 转换为相应的Java 属性 (第二列)。 If you use startup.sh and shutdown.sh scripts for starting Zabbix Java gateway, then you can specify the necessary configuration parameters in file settings.sh. The startup and shutdown scripts source the settings file and take care of converting shell variables (listed in the first column) to Java properties (listed in the second column).

如果通过手动运行java命令来起动Zabbix Java 网关, 可以通过命令行方式来指定Java属性. If you start Zabbix Java gateway manually by running java directly, then you specify the corresponding Java properties on the command line.

变量参数必须配置范围默认值描述信息
VariablePropertyMandatoryRangeDefaultDescription
LISTEN_IP zabbix.listenIP 0.0.0.0 监听IP。
LISTEN_IP zabbix.listenIP no 0.0.0.0 IP address to listen on.
LISTEN_PORT zabbix.listenPort 1024-32767 10052 监听端口。
LISTEN_PORT zabbix.listenPort no 1024-32767 10052 Port to listen on.
PID_FILE zabbix.pidFile /tmp/zabbix_java.pid PID文件的名称。 如果省略,Zabbix Java 网关将作为控制台应用程序启动。
PID_FILE zabbix.pidFile no /tmp/zabbix_java.pid Name of PID file. If omitted, Zabbix Java Gateway is started as a console application.
START_POLLERS zabbix.startPollers1-10005启动多少个轮询线程。
START_POLLERS zabbix.startPollers no 1-10005Number of worker threads to start.
TIMEOUT zabbix.timeout1-303网络超时时间。 从Zabbix 2.0.15, 2.2.10 和 2.4.5开始支持该参数。
TIMEOUT zabbix.timeout no 1-303How long to wait for network operations. This parameter is supported since Zabbix 2.0.15, 2.2.10 and 2.4.5.
端口10052没有IANA 注册.
Port 10052 is not IANA registered.