Closed The-Judge closed 9 years ago
@The-Judge thanks for pointing it out. I am working on a container on an image that uses java 1.8.
@The-Judge pushed some changes to the following branch.
https://github.com/berngp/docker-zabbix/tree/develop
The zabbix-java-gateway service should be running fine. If you want to run it locally you can do the following.
su -s /bin/bash -c "$JAVA -server -classpath /usr/sbin/zabbix_java/lib/*:/usr/sbin/zabbix_java/bin/*:lib/*:bin/* -Dzabbix.pidFile=/var/run/zabbix/zabbix_java.pid -Dzabbix.listenIP=0.0.0.0 com.zabbix.gateway.JavaGateway" zabbix
When issuing what init-script would do manually (
su -s /bin/bash -c "java -server -classpath lib:lib/*.jar:bin/*.jar -Dzabbix.pidFile=/var/run/zabbix/zabbix_java.pid -Dzabbix.listenIP=0.0.0.0 com.zabbix.gateway.JavaGateway" zabbix
) it returns the following and dies immediately:Could not find or load main class com.zabbix.gateway.JavaGateway
Searching for it, it turns out that this version of Zabbix requires Java 7, which seems not be fulfilled by OpenJDK u71-b14. References:
https://support.zabbix.com/browse/ZBX-6182