ActiveMQ and zabbixjmxactivemq of Zabbix JMX monitoring

Source: Internet
Author: User
Tags jconsole

ActiveMQ and zabbixjmxactivemq of Zabbix JMX monitoring
Monitoring principle: ActiveMQ is a java-dependent middleware that can also be monitored using JMX (java Extension Program) Like tomcat. Unlike tomcat, ActiveMQ comes with JMX. You only need to enable it in the configuration file. After JMX is configured, You can monitor the ActiveMQ environment through Jconsole (a tool used to monitor the java environment: deployment of centos 6.8 and java 1.7.0 _ 21: 1. Download activemqwget external-I. If the local Internet IP address is not, a Connection timed out2 and configuration error will be reported during jconsole Connection. /apache-activemq-5.11.1/conf/activemq. xml modify broken field: <broker useJmx = "true" xmlns = "http://activemq.apache.org/schema/core" brokerName = "localhost" dataDirectory = "$ {activemq. data} "> modify the managementContext node in the broken field:

<managementContext>              <managementContext createConnector="true" connectorPort="11099"/>  </managementContext> 
3. Configure./apache-activemq-5.11.1/bin/activemq to add at the end of the script:
ACTIVEMQ_SUNJMX_START="-Dcom.sun.management.jmxremote.port=11099 "ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.password.file=${ACTIVEMQ_CONF}/jmx.password"ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.access.file=${ACTIVEMQ_CONF}/jmx.access"ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.ssl=false"
4. If pache-activemq is enabled successfully, port 11099 should be enabled (if it is not enabled or the program cannot be enabled, find the reason) and use jconsole (jdk is installed in the java directory in windows) connection IP: 11099 (username: admin, password: activemq, which is in jmx. password and jmx. access). If the connection is normal, proceed to the next step. If the connection fails, killall-9 java pkill-9 activemq multiple times after killing the process and enabling activemq and then reconnecting 5. Adding a template cannot upload files... Import the template to zabbix as the parent template, clone a new template, modify the macro, and modify the JMX interface. In this case, the JMX icon turns green, and the monitoring metrics of the new template will collect data. FAQ: 1. There are several reasons why activemq cannot be started: the memory is insufficient. /activemq startls confirmation; time is not synchronized, you can enable time synchronization for service ntpdate start; jmx. access and jmx. the current user of the password file does not have the 400 permission. This is unconfirmed. 2. If the connection is normal when the jconsole connects to jmx (what is the error reported), it may be that the zabbix-java-gateway version is too low, upgrade to zabbix-java-gateway-3.4.1.

Related Article

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.