Ad Widget

Collapse

about tomcat monitor

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jack_lai
    Junior Member
    • Nov 2018
    • 8

    #1

    about tomcat monitor

    DEAR ALL:
    I want to monitor my tomcat service usage in zabbix.

    In Zabbix server side ,I modify two config file;
    one file "/etc/zabbix/zabbix_server.conf" ,I modify
    " JavaGateway=192.168.1.100
    JavaGatewayPort=10052
    StartJavaPollers=5"

    other file "/etc/zabbix/zabbix_java_gateway.conf"
    " LISTEN_IP=192.168.1.100
    LISTEN_PORT=10052
    START_POLLERS=5"


    In Tomcat client server ,I modify "C:\AF37\Tomcat6\bin\catalina.sh" and add this content
    "CATALINA_OPTS="$CATALINA_OPTS
    -Dfile.encoding=utf-8
    -Dcom.sun.management.jmxremote
    -Dcom.sun.management.jmxremote.authenticate=false
    -Dcom.sun.management.jmxremote.port=12345
    -Dcom.sun.management.jmxremote.ssl=false
    -Djava.rmi.server.hostname=192.168.1.200" #modify tomcat server ip"

    After above config , in zabbix web ,I got this error message "Connection refused (Connection refused): service:jmx:rmi:///jndi/rmi://192.168.1.200:12345/jmxrmi"

    So which config is wrong????
Working...