Page 1 of 1

how to find the parameters you can monitor using check_jmx

Posted: Tue Jul 24, 2018 11:05 am
by vy3734
Hi,
I was able to setup JMX monitoring on a host in my nagios server. I found a few example attributes online such as ThreadCount, SystemLoadAverage, AvailableProcessors etc online. where can i find the list of all the attributes that i can monitor using the check_jmx plugin.
Example command that i'm using:
./check_jmx -U service:jmx:rmi:///jndi/rmi://$host:$port/jmxrmi -O java.lang:type=OperatingSystem -A SystemLoadAverage -w 85 -c 90 --username user --password pwd

Appreciate all the help in advance.

Re: how to find the parameters you can monitor using check_j

Posted: Tue Jul 24, 2018 11:40 am
by mcapra
vy3734 wrote:where can i find the list of all the attributes that i can monitor using the check_jmx plugin.
That plugin is simple establishing JMX connections and querying whatever beans you tell it to. So it can query any "attribute" that is exposed by the Java runtime.

What gets exposed is totally different for Tomcat versus WebLogic versus any other app server or application. A vanilla Java runtime exposes some basic runtime info regarding memory, threads, classes, etc. If you're a developer building an app with some sort of special internal queuing/threading mechanism, you might write some beans and expose information about those mechanisms for better observability.

JConsole is probably the easiest way to do JMX exploration:
https://docs.oracle.com/javase/7/docs/t ... nsole.html

Re: how to find the parameters you can monitor using check_j

Posted: Wed Jul 25, 2018 1:55 pm
by cdienger
Thank you for your input, @mcapra!