Ad Widget

Collapse

Trying to monitor JMX Ports from a Docker container

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vongrafen
    Junior Member
    • Jan 2023
    • 2

    #1

    Trying to monitor JMX Ports from a Docker container

    I'm trying to monitor the JMX Ports from a Docker container, but when I tried to get some data this message returns on the logs:
    WARN com.zabbix.gateway.SocketProcessor - error processing request: bad protocol header: 4A 52 4D 49 00
    WARN com.zabbix.gateway.SocketProcessor - error processing request: bad protocol header: 16 03 03 01 49
    WARN com.zabbix.gateway.SocketProcessor - error processing request, item "jmx.discovery[attributes,"Catalina:type=ProtocolHandler,port=*"]" failed: Unsupported or unrecognized SSL message: service:jmx:rmi:///jndi/rmi://192.168.2.21:10052/jmxrmi


    The SSL configurations and all JVM params still FALSE by default.

    In this case I configure my Zabbix Proxy in the Zabbix Frontend with the IP and Port of Zabbix Proxy, using a JMX Zabbix Default Tomcat Template.
    The Zabbix Proxy and Zabbix Java Gateway are in the same machine.

    When I create a host with the IP and JMX Port directly, this error is what I got:
    WARN com.zabbix.gateway.SocketProcessor - error processing request, item "jmx["Catalina:type=Server",serverInfo]" failed: Connection refused (Connection refused): service:jmx:rmi:///jndi/rmi://192.168.2.21:6000/jmxrmi

    Can any one help me on this? I've search on the internet but I have no ideia how to solve this problem.

    Thanks in advance!​
  • vongrafen
    Junior Member
    • Jan 2023
    • 2

    #2
    Hi all,

    I solved this problem by correctly pointing the Djava.rmi.server.hostname=HOST_IP​ parameter on the server to the IP of the server itself that is being monitored. Before, I was pointing it wrongly to the IP of the Zabbix Proxy.

    Thank you all for your attention.​

    Comment

    Working...