Use Zenoss to monitor JMX

Source: Internet
Author: User

Background

Zenoss 4.x provides JMX monitoring support. You can access the following webpage to learn more:

Http://wiki.zenoss.org/ZenPack:Java_2_Platform_Standard_Edition_%28J2E%29

Problem

However, according to the configuration in the document, the following exception occurs when you try to monitor Tomcat in windows:

Error Connecting to Server ; Failed to connect to service:jmx:rmi:///jndi/rmi://XX.XX.XX.XX 12345/jmxrmi [Nested Exception: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: /XX.XX.XX.XX; nested exception is: java.net.ConnectException: Connection refused]]
Solution

Add the configuration in startup. bat

set JAVA_OPTS=%JAVA_OPTS%-Dcom.sun.management.jmxremote.port="12345"  set JAVA_OPTS=%JAVA_OPTS%-Dcom.sun.management.jmxremote.authenticate="false"set JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.management.jmxremote.ssl="false"
Extended:
set JAVA_OPTS=%JAVA_OPTS%-Djava.rmi.server.hostname=XX.XX.XX.XXset JAVA_OPTS=%JAVA_OPTS%-Dcom.sun.management.jmxremote.port="12345"  set JAVA_OPTS=%JAVA_OPTS%-Dcom.sun.management.jmxremote.authenticate="false"set JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.management.jmxremote.ssl="false"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.