forging2012 / tomcat-zabbix-template Goto Github PK
View Code? Open in Web Editor NEWThis project forked from zhujinhe/tomcat-zabbix-template
tomcat-zabbix-template with macros
This project forked from zhujinhe/tomcat-zabbix-template
tomcat-zabbix-template with macros
About: You can moittoring your tomcat with custom settings by using the template below. Which template to be used depends on the ObjectName of your Mbean. You can get Mbean data through jconcole of JDK or cmdline-jmxclient-0.10.3.jar(not recommend) after setting on the zabbix-agent has done. ObjectName:Catalina:type=ThreadPool,name=ajp-bio-8080 (non-double-quotations) matches zbx_JMX-tomcat-old-version-with-macros_template.xml ObjectName:Catalina:type=ThreadPool,name="ajp-bio-8080"(double-quotations) matches zbx_JMX-tomcat-with-macros_template.xml There are 7 macros defiended on the templates. You can add Macros on the hosts(High priority than the templates) to overwrite it. {$AJP_CONNECTOR_DESC}:jk(default on tomcat 6?not formirmed)|ajp-bio(default on tomcat 7)|ajp-nio(default on tomcat 8) #{$AJP_CONNECTOR_PORT}:8009 (default) {$HTTP_CONNECTOR_DESC}:http-bio|http-nio|http {$HTTP_CONNECTOR_PORT}:80|8080(default) {$SSL_CONNECTOR_DESC}:http-bio(default on tomcat 7) {$SSL_CONNECTOR_PORT}:8443(default) {$SERVICE_HOST_NAME}:localhost (default) {$SERVICE_HOST_PATH}:/ (default) Requirement: 1. Check the Tomcat version: sh /path/to/your/tomcat/bin/catalina.sh version 2. Get $URL of catalina-jmx-remote.jar that matches tomcat version via http://mvnrepository.com/artifact/org.apache.tomcat/tomcat-catalina-jmx-remote 3. Confirm the $IP address of your hosts.(eg:172.27.4.105) 4. Confirm the ProtocolHander of connector (bio|nio|apr) Getting start: Setting on the zabbix-agent. step 1: vim /path/to/your/tomcat/bin/catalina.sh Replease 172.27.4.105 by your $IP and insert the these lines ahead of the first non-comment line of the catalina.sh. CATALINA_OPTS="-Dcom.sun.management.jmxremote \ -Dcom.sun.management.jmxremote.authenticate=false \ -Dcom.sun.management.jmxremote.ssl=false \ -Djava.rmi.server.hostname=172.27.4.105" step 2:vim /path/to/your/tomcat/conf/server.xml Add this line next the the last line of <Listener className=""/> <Listener className="org.apache.catalina.mbeans.JmxRemoteLifecycleListener" rmiServerPortPlatform="12346" rmiRegistryPortPlatform="12345"/> step 3 : Download the maches catalina-jmx-remote.jar $URL to your /path/to/your/tomcat/lib/ wget $URL -O /path/to/your/tomcat/lib/catalina-jmx-remote.jar step 4 : Allow access to port 10050,12345,12346 if the firewall is started. Setting on the zabbix-server. step 1 : Import the right Template to your zabbix-server web interface. step 2 : Add JMX interface:$IP:12345 step 3 : Link the template to the host. setp 4 : Add Macros on the host if your setting of tomcat does not matched the default Macros on the templates. Reference Documents: https://www.zabbix.com/documentation/2.4/manual/config/items/itemtypes/jmx_monitoring https://www.zabbix.com/documentation/2.4/manual/concepts/java Monitoring and Management Using JMX:http://docs.oracle.com/javase/1.5.0/docs/guide/management/agent.html JMX cannot connect through firewalls:https://support.zabbix.com/browse/ZBX-5326
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.