Hi!
I have spend almost a week to be able to connect to a kafka server from zabbix_java_gateway all running in difrent vm in my pc with vagrant
I followed the Dimity video about JMX with tomcat and did exactly the same with zabbix and tomcat in difrent machines and didn't work. And then i tried in the same machine and Bingo it work. After some time i discovered why. This post is for other not to waste so much time as me, The porblem was in the configurations of kafka JMX. what i did was to configure the following parameters:
from documentation( and this works locally very well) -Dcom.sun.management.jmxremote \ -Dcom.sun.management.jmxremote.port=12345 \ -Dcom.sun.management.jmxremote.authenticate=false \ -Dcom.sun.management.jmxremote.ssl=false \ to be able to access remotly i had to add also : -Djava.rmi..server.hostname=<ip of the kafka server> ( I am not sure about this one but i think is to alllow connection to this ip)
-Dcom.sun.management.jmxremote.rmi.port=1234 ( this one is for the rmi to use only this port)
And after this it starte working with jconsole and zabbix-java-gateway
I think all these parameters should be also added to the zabbix documentation
I hope it will help other
I have spend almost a week to be able to connect to a kafka server from zabbix_java_gateway all running in difrent vm in my pc with vagrant
I followed the Dimity video about JMX with tomcat and did exactly the same with zabbix and tomcat in difrent machines and didn't work. And then i tried in the same machine and Bingo it work. After some time i discovered why. This post is for other not to waste so much time as me, The porblem was in the configurations of kafka JMX. what i did was to configure the following parameters:
from documentation( and this works locally very well) -Dcom.sun.management.jmxremote \ -Dcom.sun.management.jmxremote.port=12345 \ -Dcom.sun.management.jmxremote.authenticate=false \ -Dcom.sun.management.jmxremote.ssl=false \ to be able to access remotly i had to add also : -Djava.rmi..server.hostname=<ip of the kafka server> ( I am not sure about this one but i think is to alllow connection to this ip)
-Dcom.sun.management.jmxremote.rmi.port=1234 ( this one is for the rmi to use only this port)
And after this it starte working with jconsole and zabbix-java-gateway
I think all these parameters should be also added to the zabbix documentation
I hope it will help other