zabbix server can't connect to java gateway -


i have installed zabbix server , java gateway in same linux server , started zabbix-server , zabbix-java-gateway service. os centos 6.5, java jdk1.6.0_45, ip 192.98.12.240, zabbix server , zabbix java gateway version 2.2.9. have stop iptables service.

then in zabbix web console, added host enabled jmx interface. host ip 192.98.12.198 , jmx post 9999. in jconsole, can connect jmx enabled java application. in zabbix web console, show error:

enter image description here

below zabbix_server.conf

logfile=/var/log/zabbix/zabbix_server.log logfilesize=0 debuglevel=4 pidfile=/var/run/zabbix/zabbix_server.pid dbhost=localhost dbname=zabbix dbuser=zabbix dbpassword=zabbix dbsocket=/var/lib/mysql/mysql.sock javagateway=192.98.12.240 javagatewayport=10052 startjavapollers=5 snmptrapperfile=/var/log/snmptt/snmptt.log alertscriptspath=/usr/lib/zabbix/alertscripts externalscripts=/usr/lib/zabbix/externalscripts 

below zabbix_java_gateway.conf

listen_ip=192.98.12.240 listen_port=10052 pid_file="/var/run/zabbix/zabbix_java.pid" start_pollers=5 

below snippes of zabbix_server.log

13573:20150321:100114.503 in substitute_key_macros() data:'jmx[java.lang:type=memory,heapmemoryusage.used]' 13573:20150321:100114.503 end of substitute_key_macros():succeed data:'jmx[java.lang:type=memory,heapmemoryusage.used]' 13573:20150321:100114.503 in substitute_simple_macros() data:'9999' 13573:20150321:100114.503 in substitute_simple_macros() data:empty 13573:20150321:100114.503 in substitute_simple_macros() data:empty 13573:20150321:100114.503 in get_values_java() host:'myhost' addr:'192.98.12.198' num:1 13573:20150321:100114.503 getting java values failed: cannot connect [[192.98.12.240]:10052]: [13] permission denied 13573:20150321:100114.503 end of get_values_java() 13573:20150321:100114.503 in deactivate_host() hostid:10106 itemid:23899 type:16 13573:20150321:100114.503 query [txnlev:1] [begin;] 13573:20150321:100114.503 query [txnlev:1] [update hosts set jmx_disable_until=1426903334,jmx_error='cannot connect [[192.98.12.240]:10052]: [13] permission denied' hostid=10106] 13573:20150321:100114.504 query [txnlev:1] [commit;] 13573:20150321:100114.526 deactivate_host() errors_from:1426901309 available:2 13573:20150321:100114.526 end of deactivate_host() 13573:20150321:100114.526 end of get_values():1 

below zabbix_java_gateway.log

2015-03-21 10:54:29.078 [main] info  com.zabbix.gateway.javagateway - zabbix java gateway 2.2.9 (revision 52686) has started 2015-03-21 10:54:29.086 [main] debug c.z.gateway.configurationmanager - starting parse configuration parameters 2015-03-21 10:54:29.086 [main] debug c.z.gateway.configurationmanager - found pidfile configuration parameter value '/var/run/zabbix/zabbix_java.pid' 2015-03-21 10:54:29.087 [main] debug c.z.gateway.configurationmanager - received pidfile configuration parameter, daemonizing 2015-03-21 10:54:29.088 [main] debug c.z.gateway.configurationmanager - found listenip configuration parameter value '192.98.12.240' 2015-03-21 10:54:29.089 [main] debug c.z.gateway.configurationmanager - found listenport configuration parameter value '10052' 2015-03-21 10:54:29.089 [main] debug c.z.gateway.configurationmanager - found startpollers configuration parameter value '5' 2015-03-21 10:54:29.089 [main] debug c.z.gateway.configurationmanager - finished parsing configuration parameters 2015-03-21 10:54:29.092 [main] info  com.zabbix.gateway.javagateway - listening on /192.98.12.240:10052 2015-03-21 10:54:29.097 [main] debug com.zabbix.gateway.javagateway - created thread pool of 5 pollers 

please , thanks.

ps: had changed javagateway in zabbix_server.conf localhost or 127.0.0.1, didn't work too.

# modify zabbix_server.conf   javagateway=127.0.0.1  # modify zabbix_java_gateway.conf  listen_ip=127.0.0.1  # restart services  service zabbix-server restart  service zabbix-java-gateway restart 

note : make sure selinux or iptables not blocking requests.


Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -