Zabbix - Java-Gateway Installation and Tomcat Monitoring
Zabbix - Java-Gateway Installation and Tomcat Monitoring
Version:
Document version:1.1
Zabbix -java –gateway =3.4.6
OpenJDK version=1.8
JDK installation:
Lets install latest open JDK from the base repository.
#sudo yum install java-1.8.0-openjdk-devel
location of bin file : /usr/lib/jvm/java-openjdk/bin
Location of lib file: /usr/lib/jvm/java-openjdk/jre/lib
Now check JMX is green or RED.If you get just like below parameter then its done.
5.Now put the IP and port that you have configured in catalina.sh and click on connect.
Now restart tomcat and paste the url into the browser.Paste the username and
password you will get jmx data.
$>bean Catalina:context=/host-manager,host=localhost,type=Manager
#bean is set to Catalina:context=/host-manager,host=localhost,type=Manager
$>info
#mbean = Catalina:context=/host-manager,host=localhost,type=Manager
#class name = org.apache.tomcat.util.modeler.BaseModelMBean
# attributes
%0 - activeSessions (int, r)
%1 - className (java.lang.String, r)
%2 - distributable (boolean, rw)
%3 - duplicates (int, rw)
$>get activeSessions
#mbean = Catalina:context=/host-manager,host=localhost,type=Manager:
activeSessions = 0;