-
Type:
Incident report
-
Resolution: Won't fix
-
Priority:
Blocker
-
None
-
Affects Version/s: 2.4.4
-
Component/s: Java gateway (J)
-
None
Hello, I try implement second URL to zabbix_java_gateway. some time ago I find this solution:
String conn = request.getString(JSON_TAG_CONN); int port = request.getInt(JSON_TAG_PORT); //Dirty solution for ZBXNEXT-1274 Integer remoting = new Integer("9999"); int retval = remoting.compareTo(port); Integer remoting1 = new Integer("10000"); int retval1 = remoting1.compareTo(port); Integer remoting2 = new Integer("10001"); int retval2 = remoting2.compareTo(port); Integer remoting3 = new Integer("10002"); int retval3 = remoting3.compareTo(port); Integer remoting4 = new Integer("10003"); int retval4 = remoting4.compareTo(port); Integer remoting5 = new Integer("10004"); int retval5 = remoting5.compareTo(port); Integer remoting6 = new Integer("10005"); int retval6 = remoting6.compareTo(port); if (retval == 0 || retval1 == 0 || retval2 == 0 || retval3 == 0 || retval4 == 0 || retval5 == 0 || retval6 == 0) { url = new JMXServiceURL("service:jmx:remoting-jmx://" + conn + ":" + port); } else { url = new JMXServiceURL("service:jmx:rmi:///jndi/rmi://" + conn + ":" + port + "/jmxrmi"); } jmxc = null; mbsc = null;
This solution works for version 2.2.1 but now when I do the same for version 2.4.4. this don't works. I set my log level for DEBUG, but in log files there is no error:
Logfile:
2015-03-09 14:21:07.218 [main] DEBUG c.z.gateway.ConfigurationManager - received pidFile configuration parameter, daemonizing 2015-03-09 14:21:07.218 [main] DEBUG c.z.gateway.ConfigurationManager - finished parsing configuration parameters 2015-03-09 14:21:07.220 [main] INFO com.zabbix.gateway.JavaGateway - listening on 0.0.0.0/0.0.0.0:10052 2015-03-09 14:21:07.223 [main] DEBUG com.zabbix.gateway.JavaGateway - created a thread pool of 5 pollers 2015-03-09 14:24:13.998 [Thread-0] INFO com.zabbix.gateway.JavaGateway - Zabbix Java Gateway 2.4.4 (revision 52341) has stopped 2015-03-09 14:25:28.456 [main] INFO com.zabbix.gateway.JavaGateway - Zabbix Java Gateway 2.4.4 (revision 52341) has started 2015-03-09 14:25:28.466 [main] INFO com.zabbix.gateway.JavaGateway - listening on 0.0.0.0/0.0.0.0:10052 2015-03-09 14:33:01.834 [Thread-0] INFO com.zabbix.gateway.JavaGateway - Zabbix Java Gateway 2.4.4 (revision 52341) has stopped 2015-03-09 14:33:07.373 [main] INFO com.zabbix.gateway.JavaGateway - Zabbix Java Gateway 2.4.4 (revision 52341) has started 2015-03-09 14:33:07.384 [main] INFO com.zabbix.gateway.JavaGateway - listening on /192.168.175.252:10052
Please give me some advice how I can fix it or if there is some patch please provide me.
Regards
Mcik