Page 1 of 1

JVM Monitoring

Posted: Fri Feb 23, 2018 8:49 am
by keerthi.seetharaman
Hello Team,

Good Day.

We have requirement where we need to monitor running java process. Currently we have a plugin check_java.

So please let me know how to monitor for the same.

Let me know in case if any more details are required.

Regards,
Keerthi Prashanth S.

Re: JVM Monitoring

Posted: Fri Feb 23, 2018 10:06 am
by mcapra
Is check_java producing some sort of error messages or otherwise not working?

There's official documentation for using check_jmx to remotely monitor JVMs:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf

The documentation assumes the particular JVM you are trying to monitor has exposed JMX endpoints that the plugin can reach.

Re: JVM Monitoring

Posted: Fri Feb 23, 2018 12:22 pm
by scottwilkerson
Thanks @mcapra!

Thios should get you going, let us know if you need something further

Re: JVM Monitoring

Posted: Mon Feb 26, 2018 3:15 am
by keerthi.seetharaman
We tried it and its not working.

Please suggest what needs to be done.

Re: JVM Monitoring

Posted: Mon Feb 26, 2018 9:33 am
by mcapra
keerthi.seetharaman wrote:We tried it and its not working.
What is "it"? Did you try check_java or check_jmx?

Can you share any specific errors you're encountering when using either plugin? Those error messages are vital in figuring out the solution.

Re: JVM Monitoring

Posted: Mon Feb 26, 2018 10:54 am
by scottwilkerson
@keerthi.seetharaman we need to know what error you are having with the doc to be of assistance. What is happening (we need more information than "its not working")?

Thanks

Re: JVM Monitoring

Posted: Tue Feb 27, 2018 1:48 am
by keerthi.seetharaman
As this is new request to monitor to JVM so please let us know what can be done to monitor the number of jvm process.

Let us know in case if any more details are required.

Re: JVM Monitoring

Posted: Tue Feb 27, 2018 8:40 am
by scottwilkerson
It was mentioned earlier we have documentation on this
mcapra wrote: There's official documentation for using check_jmx to remotely monitor JVMs:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
To which you replied
keerthi.seetharaman wrote:We tried it and its not working.
So to answer your question
keerthi.seetharaman wrote:Let us know in case if any more details are required.
The answer is Yes, we need to know if you actually followed that documentation?

And if so, what isn't working?

Re: JVM Monitoring

Posted: Tue Feb 27, 2018 9:56 am
by keerthi.seetharaman
But this is java virtual machine..

How come JMX is as similar to JVM

Re: JVM Monitoring

Posted: Tue Feb 27, 2018 10:33 am
by scottwilkerson
JMX == Java Management Extensions

The only real way to get information out of java is through JMX, unless you are writing something else into your java application.

Other than this, you are only going to be able to do process checking (e.g. is java running)