berngp / docker-zabbix

Docker Container running a Zabbix Server and Zabbix Web UI.
Other
160 stars 66 forks source link

zabbix-java-gateway not working #10

Closed The-Judge closed 9 years ago

The-Judge commented 9 years ago

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

berngp commented 9 years ago

@The-Judge thanks for pointing it out. I am working on a container on an image that uses java 1.8.

berngp commented 9 years ago

@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