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
JMX Service for Preferdata Graph
Re: JMX Service for Preferdata Graph
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
Re: JMX Service for Preferdata Graph
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:
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
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:
Have you tried using this version of the plugin?I've added perfdata output for graphing. The updated code is available at https://github.com/atamariya/nagios-check-jmx
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
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
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
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