Ad Widget

Collapse

Monitoring JMX interfaces over SSH | ZBX_TCP_READ() timed out

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Bo12b
    Junior Member
    • Apr 2018
    • 1

    #1

    Monitoring JMX interfaces over SSH | ZBX_TCP_READ() timed out

    Hey, I'm trying to figure out if it's possible to monitor JMX interfaces over SSH tunnels, I've successfully monitored JMX interfaces on my LAN, but I can't seem make it work over ssh I always get the Error ZBX_TCP_READ() timed out.

    I'm also confused about the zabbix java gateway and the default port its using, how does it work? I know it listens on port 10052 on my zabbix server, do I have to create a Local ssh tunnel on the remote server and point to the java gateway?


    For example :

    JMX port on the remote server 12345 to my java gateway port on zabbix server
    ssh user@zabbixServer -f -N -L 12345:localhost:10052

    I also tried:

    using any port on zabbix server ex: 10090 to connect to the JMX remote server port
    ssh user@zabbixServer -f -N -R 10090:localhost:12345

    Telneting the tunnel ports and the jmx port, all good


    My current configurations
    12345
    Zabbix Server Configurations

    Java Gateway configuration : zabbix_java_gateway.conf

    LISTEN_IP = "127.0.0.1"
    LISTEN_PORT = 10052
    START_POLLERS = 5
    TIMEOUT = 10

    Zabbix Server Configuration : zabbix_server.conf

    JavaGateway = 127.0.0.1
    JavaGatewayPort = 10052
    StartJavaPollers = 5



    Remote Server

    #Application Server

    -Dcom.sun.management.jmxremote
    -Dcom.sun.management.jmxremote.port=12345
    -Dcom.sun.management.jmxremote.ssl=false
    -Dcom.sun.management.jmxremote.authenticate=false
    -Djava.rmi.server.hostname = localhost [In this situation I'm not sure if I should use localhost or the Server ip]


    #Zabbix Server Interface

    JMX Interfaces

    localhost DNS 10090


    Tunnel

    Forwarding the JMX port 12345 to port 10090 on Zabbix Server
    ssh user@zabbixServer -f -N -R 10090:localhost:12345




    Any help would be appreciated, thank you
  • dali
    Junior Member
    • Nov 2015
    • 3

    #2
    Whenever I search for an issue with zabbix and I find a thread, it is unanswered, i feels that community is not ver supportive ...

    Comment

    Working...