[ZBX-17545] Zabbix 4.2 jmx cannot open received json Created: 2020 Apr 03  Updated: 2020 Apr 07  Resolved: 2020 Apr 07

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Java gateway (J)
Affects Version/s: 4.2.8
Fix Version/s: None

Type: Incident report Priority: Trivial
Reporter: Maximiliano Assignee: Eduards Matuls (Inactive)
Resolution: Commercial support required Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File cannot open received json.PNG     PNG File jmx configuration.PNG    

 Description   

Steps to reproduce:

  1. Changes in configuration...
  2. Navigate to screen title...
  3. Click on screen element...
  4. ...

Result:
See screenshot...
See log file...
See memory dump...
Expected:
See screenshot....
See attached patch file...



 Comments   
Comment by Eduards Matuls (Inactive) [ 2020 Apr 06 ]

Hello!
Could you please provide more details about the issue? Log files, configuration examples?
What settings did you set your java application configuration?
Regards,
Eduards.

Comment by Maximiliano [ 2020 Apr 06 ]

sure, give me one moment I will give more details. do you know where this could be? it is a problem of connectivity?

 

 

thanks, 

Max

Comment by Maximiliano [ 2020 Apr 06 ]

Zabbix server 

conf file

          1. JAVA GATEWAY PARAMETERS #####
            JavaGateway=127.0.0.1
            JavaGatewayPort=10052
            StartJavaPollers=10

zabbix server logs. 

26550:20200406:144908.747 unknown request received [java gateway jmx]
26547:20200406:145008.763 unknown request received [java gateway jmx]
26551:20200406:145108.779 unknown request received [java gateway jmx]

 

zabbix Java gateway.conf 

LISTEN_IP="127.0.0.1"

LISTEN_PORT=10052

PID_FILE="/var/run/zabbix/zabbix_java.pid"

START_POLLERS=5

 

Zabbix proxy

the host is being monitoring by zabbix proxy

zabbix proxy.conf 

          1. JAVA GATEWAY PARAMETERS #####
            JavaGateway=vpce-0863c1ab2c8070e55-majgviae.vpce-svc-0f973f12762d5fe5b.us-west-2.vpce.amazonaws.com (this is zabbix server)
            JavaGatewayPort=10052
            StartJavaPollers=10

 

Comment by Maximiliano [ 2020 Apr 06 ]

question: 

the JMX port of the application is 9006 and IP 10.122.192.146. 

from proxy when I do a telnet I cannot connect. 

telnet 10.122.192.146 9006
Trying 10.122.192.146...

 

do I need to allow that proxy connect to that port?

thanks, 

 

Comment by Eduards Matuls (Inactive) [ 2020 Apr 07 ]

Hello!
Thank you for the information. I have additional questions:
1. Check java application port please! I can see port 9001 on screenshot and you are writing about port 9006.
2. Did you set additional options to your java application? You need to set management port and allow connections to this port without authentication. Option string should look like this:
JAVA_OPTS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=12345 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false "

 

Please be advised that this section of the tracker is for bug reports only. The case you have submitted can not be qualified as one, so please reach out to sales@zabbix.com for commercial support or consultancy services. Alternatively, you can also use our IRC channel or community forum (https://www.zabbix.com/forum) for assistance. With that said, we are closing this ticket. Thank you for understanding.

 

Regards,
Eduards

Generated at Fri Apr 04 07:19:14 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.