skajla-JMXClient can be used to connect to the SUN JVM JDK 1.5.0 JMX Agent to set logging levels remotely and to get information on the running JVM. It is specially designed to return only the output value, which can be easily monitored using monitoring tools.
e.g Zabbix Agent configuration for capturing Perm Gen init memory.
UserParameter=permgen_init,
java -jar skajla-
JMXClient.jar 192.168.1.1 9999 admin jmxpass 'java.lang:type=MemoryPool,name=PS Perm Gen' CollectionUsage initAbove mentioned command will return Perm Gen Init memory value only, which can be easily capture by Zabbix or any other monitoring tool.
Command to check all available message bean which user can capture using this utilty:
#java -jar skajla-
JMXClient.jar 192.168.1.1 9999 admin jmxpass infoTo use, do the following to obtain usage:
Usage :skajla-JMXClient.jar
# java -jar skajla-
JMXClient.jar Usage :skajla-JMXClient.jar
OR, To Display All Registered bean info
skajla-JMXClient.jar
Note : Provide multiple commands & attributes separated by comma(,)
Command Options Description:
JMX Server IP : IP Address of the jmx server
JMX PORT : Port on which JMX service is running
JMX USER : Username required to connect to the JMX
JMX PASSWORD : Password required to connect to the JMX
MESSAGE BEAN : Target Bean for which attribute Value is required
COMMAND : Operation to run or attribute to fetch, Attributes begin with
a capital letter.
ATTRIBUTE : Optional, require in the cases when command output into multiple values
e.g Max Heap Memory Value.
JMX Server IP : IP Address of the jmx server
JMX PORT : Port on which JMX service is running
JMX USER : Username required to connect to the JMX
JMX PASSWORD : Password required to connect to the JMX
MESSAGE BEAN : Target Bean for which attribute Value is required
COMMAND : Operation to run or attribute to fetch, Attributes begin with
a capital letter.
ATTRIBUTE : Optional, require in the cases when command output into multiple values
e.g Max Heap Memory Value.
Requirement:
JDK1.6,If connecting to a SUN 1.5.0 JDK JMX Agent, remote side must be started with
system properties such as the following:
-Dcom.sun.management.jmxremote.port=
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false
Download Executable JAR File:
http://jmxclient.svn.sourceforge.net/viewvc/jmxclient/skajla-JMXClient.jar?revision=3
Download Source Code:
http://sourceforge.net/projects/jmxclient/
No comments:
Post a Comment