Ad Widget

Collapse

Issues trying to monitor a Tomcat server.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SpaceAvenger
    Junior Member
    • Dec 2022
    • 1

    #1

    Issues trying to monitor a Tomcat server.

    I'm trying to monitor a local Tomcat App server using a Zabbix Docker server. I have a separate Zabbix server that I stood up using the manual install and it's able to see my Tomcat server via the Java Gateway/jmx connection. Unfortunately I can't get my Dockerized Zabbix server to see the TC server. Based on the fact that the manual install can connect tells me that my TC configuration is fine. What am I missing on the Dockerized version? I'm using the docker-compose 6.2.6 version for ubuntu/MySQL. Here is the error messages I'm receiving. Any help would be greatly appreciated.

    Code:
    
    2022-12-20 16:45:43.684 [pool-2-thread-4] DEBUG com.zabbix.gateway.SocketProcessor - starting to process incoming connection
    
    2022-12-20 16:45:43.684 [pool-2-thread-4] DEBUG c.z.gateway.BinaryProtocolSpeaker - reading Zabbix protocol header
    
    2022-12-20 16:45:43.684 [pool-2-thread-4] DEBUG c.z.gateway.BinaryProtocolSpeaker - reading 8 bytes of data length
    
    2022-12-20 16:45:43.684 [pool-2-thread-4] DEBUG c.z.gateway.BinaryProtocolSpeaker - reading 184 bytes of request data
    
    2022-12-20 16:45:43.684 [pool-2-thread-4] DEBUG c.z.gateway.BinaryProtocolSpeaker - received the following data in request: {"request":"java gateway jmx","jmx_endpoint":"service:jmx:rmi:///jndi/rmi://192.168.1.191:12345/jmxrmi","keys":["jmx.discovery[beans,\"Catalina:type=GlobalRequestProcessor,name=*\"]"]}
    
    2022-12-20 16:45:43.685 [pool-2-thread-4] DEBUG com.zabbix.gateway.SocketProcessor - RMI SSL hint cache cleanup is scheduled on 1671574984339, now is: 1671554743685
    
    2022-12-20 16:45:43.685 [pool-2-thread-4] DEBUG com.zabbix.gateway.SocketProcessor - dispatched request to class com.zabbix.gateway.JMXItemChecker
    
    2022-12-20 16:45:43.685 [pool-2-thread-4] DEBUG c.z.g.ZabbixJMXConnectorFactory - connecting to JMX agent at 'service:jmx:rmi:///jndi/rmi://192.168.1.191:12345/jmxrmi'
    
    2022-12-20 16:45:46.685 [pool-2-thread-4] DEBUG c.z.g.ZabbixJMXConnectorFactory - connecting to JMX agent at 'service:jmx:rmi:///jndi/rmi://192.168.1.191:12345/jmxrmi'
    
    2022-12-20 16:45:49.685 [pool-2-thread-4] WARN com.zabbix.gateway.SocketProcessor - error processing request, item "jmx.discovery[beans,"Catalina:type=GlobalRequestProcessor,name=*"]" failed: Connection timed out: service:jmx:rmi:///jndi/rmi://192.168.1.191:12345/jmxrmi
    
    2022-12-20 16:45:49.685 [pool-2-thread-4] DEBUG com.zabbix.gateway.SocketProcessor - error caused by
    
    com.zabbix.gateway.ZabbixException: Connection timed out: service:jmx:rmi:///jndi/rmi://192.168.1.191:12345/jmxrmi
    
    at com.zabbix.gateway.JMXItemChecker.getValues(JMXItemChecker.java:169)
    
    at com.zabbix.gateway.SocketProcessor.run(SocketProcessor.java:81)
    
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    
    at java.lang.Thread.run(Thread.java:750)
    
    2022-12-20 16:45:49.685 [pool-2-thread-4] DEBUG c.z.gateway.BinaryProtocolSpeaker - sending the following data in response: {"response":"failed","error":"Connection timed out: service:jmx:rmi:\/\/\/jndi\/rmi:\/\/192.168.1.191:12345\/jmxrmi"}
    ​
Working...