JMX Service for Preferdata Graph

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
anguri.sudhakar
Posts: 22
Joined: Tue Dec 01, 2015 6:00 am

JMX Service for Preferdata Graph

Post 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
User avatar
lgroschen
Posts: 384
Joined: Wed Nov 27, 2013 1:17 pm

Re: JMX Service for Preferdata Graph

Post 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
/Luke
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: JMX Service for Preferdata Graph

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
anguri.sudhakar
Posts: 22
Joined: Tue Dec 01, 2015 6:00 am

Re: JMX Service for Preferdata Graph

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: JMX Service for Preferdata Graph

Post 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.
Former Nagios Employee
Locked