Page 1 of 1

JMX Service for Preferdata Graph

Posted: Thu Jan 28, 2016 1:13 am
by anguri.sudhakar
Hi,

Could you please help me out how to generate preferdata graph using this plugin.

Check_Jmx Plugin:
./check_jmx -U service:jmx:rmi:///jndi/rmi://<hostaddress>:<port>/jmxrmi -O java.lang:type=Memory -A eapMemoryUsage -K used -I HeapMemoryUsage -J used -vvvv -w 4248302272 -c 5498760192

Thanks,
Sudhakar Anguri

Re: JMX Service for Preferdata Graph

Posted: Thu Jan 28, 2016 3:22 pm
by lgroschen
On the Nagios Exchange page here - https://exchange.nagios.org/directory/P ... mx/details - there is a prefgraph output section that has been added by another exchange user. You can get it here: https://github.com/atamariya/nagios-check-jmx

Re: JMX Service for Preferdata Graph

Posted: Thu Jan 28, 2016 3:30 pm
by lmiltchev
Not all plugins return perfdata. Does "check_jmx" return perfdata at all? Can you run the check from the command line and show us the output?

There are some comments in regards to the perfdata, returned by the plugin on the Nagios Exchange:

https://exchange.nagios.org/directory/P ... mx/details

One of the users said:
I've added perfdata output for graphing. The updated code is available at https://github.com/atamariya/nagios-check-jmx
Have you tried using this version of the plugin?

For more information on the performance data with nagios plugins, check the Nagios Plugin Development Guidelines here:

https://nagios-plugins.org/doc/guidelines.html#AEN200

Re: JMX Service for Preferdata Graph

Posted: Fri Jan 29, 2016 5:11 am
by anguri.sudhakar
Thank you so much for your response, The plugin returns the out below, i think now it will Generates prefer data graph.

JMX OK HeapMemoryUsage.used=1025193344{committed=3220242432; init=3221225472; max=3220242432; used=1025193344} | committed=3220242432; init=3221225472; max=3220242432; used=1025193344


one more question:

At present i am using single request for checking Heap-memory using below command,But is there any way for using single command to fetching multiple service values like GarbageCollector,Threading ....etc ,Because each time i have to run separate command for separate values.


./check_jmx -U service:jmx:rmi:///jndi/rmi://10.213.92.50:8877/jmxrmi -O java.lang:type=Memory -A HeapMemoryUsage -K used -I HeapMemoryUsage -J used -vvvv -w 4248302272 -c 5498760192

Re: JMX Service for Preferdata Graph

Posted: Fri Jan 29, 2016 11:59 am
by rkennedy
After reading through the documentation, I don't think it'll be possible to run multiple commands from one check. You'll need to set each one up on their own.