seuf / zabbix_java

Zabbix Java Gateway sources updated to allow jmx.discovery, jboss and t3 monitoring
5 stars 5 forks source link

Zabbix Java Gateway

Description

This is the Zabbix Java Gateway sources updated to allow

How it work

You have to specify a username in your JMX item like "user:protocol"

Where protocol can be one of :

Here is the configured urls according to each protocol.

String jmx_url      = "service:jmx:rmi:///jndi/rmi://[" + conn + "]:" + port + "/jmxrmi"; // default
String jboss_url    = "service:jmx:remoting-jmx://" + conn + ":" + port; // jboss
String t3_url       = "service:jmx:t3://"+conn+":"+port+"/jndi/weblogic.management.mbeanservers.runtime"; // T3
String t3s_url      = "service:jmx:t3s://"+conn+":"+port+"/jndi/weblogic.management.mbeanservers.runtime"; // T3S

Requirements

Copy the following libs into the zabbix java gateway lib directory :

Compilation

To build the Zabbix Java Gateway : Just clone this repository on your serveur with the JDK, then Edit the Makefile to specify the javac and jar binaries path. Compile :

make

This will generate a bin/zabbix-java-gatewat-X.Y.Z.jar package

Deployment

Just copy the generated jar into the zabbix java bin dir.