Ad Widget

Collapse

JMX problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Niwanet
    Junior Member
    • Sep 2017
    • 1

    #1

    JMX problem

    Hi,

    I've been trying to monitor tomcat6 with JMX but I got an error that I don't know how to resolve:

    java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: 11.11.150.152; nested exception is:
    java.net.ConnectException: Connexion refusée (Connection refused)]


    More explainations:

    I've got a zabbix server with the IP: 11.11.150.99
    And a Tomcat server with the IP: 11.11.150.152

    I installled zabbix_java_gateway on my zabbix server and configured it with its own IP.

    I installed a zabbix agent on the host to monitor and I modified the catalina.sh with this:
    CATALINA_OPTS="$CATALINA_OPTS\
    -Dcom.sun.management.jmxremote \
    -Djava.rmi.server.hostname=11.11.150.99 \
    -Dcom.sun.management.jmxremote.port=12345 \
    -Dcom.sun.management.jmxremote.ssl=false \
    -Dcom.sun.management.jmxremote.authenticate=false"

    Someone got a solution for me? What am I missing?
  • kaspars.mednis
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2017
    • 349

    #2
    Hello !

    change the -Djava.rmi.server.hostname=11.11.150.99 \

    to your tomcast host ip 11.11.150.152

    it must be local host ip address



    Best regards,
    Kaspars

    Comment

    Working...