how to find the parameters you can monitor using check_jmx

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
vy3734
Posts: 109
Joined: Tue Sep 29, 2015 4:48 pm

how to find the parameters you can monitor using check_jmx

Post 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.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

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

Post 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
Former Nagios employee
https://www.mcapra.com/
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

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

Post by cdienger »

Thank you for your input, @mcapra!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked