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.
how to find the parameters you can monitor using check_jmx
Re: how to find the parameters you can monitor using check_j
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.vy3734 wrote:where can i find the list of all the attributes that i can monitor using the check_jmx plugin.
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/
https://www.mcapra.com/
Re: how to find the parameters you can monitor using check_j
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.