Page 1 of 1

Monitoring for Tomcat jvm load

Posted: Mon Jun 27, 2016 1:53 pm
by trafalgargirl
Hi there wonderful helpful Nagios community :)

One of the requests from our support group was for the following:

Can we monitor Tomcat jvm load? You can be at 4g/16g of memory available but at 4g/4g of tomcat allowed memory :)

So after consulting with someone else - I was pointed towards the Nagios Exchange to this:
https://exchange.nagios.org/directory/P ... vm/details

I went ahead and downloaded the jar on the target machine - per the instructions (into /usr/local/bin/)

and the next step is to

* copy check_jvm to to Nagios(NRPE) plugins directory on the target system and grant it execute permissions.

And here is where I am stuck. I don't understand where to find the check_jvm? The instructions are a bit different - i.e.; my plugins seems to be in /usr/local/nagios/libexec

and not in /usr/lib/nagios/plugins/check_jvm as per his example.

Not sure what I am not following / understanding here?

Thanks
Trafgirl

Re: Monitoring for Tomcat jvm load

Posted: Mon Jun 27, 2016 4:21 pm
by tgriep
That is one example of where the plugins can be installed, you can copy the plugin to this folder /usr/local/nagios/libexec folder on your system and it should work fine for you if you match the path in the nrpe.cfg file.

Re: Monitoring for Tomcat jvm load

Posted: Mon Jun 27, 2016 5:02 pm
by bwallace
Weren't you talking about where check_jvm actually is? That's how I interpreted your question at least.
If that is so, it is here:
https://fidanov.net/c0d3/nagios-plugins ... /check_jvm

---copy it to a text file and name it check_jvm without an extension
-- to get this imported into XI, follow this doc https://assets.nagios.com/downloads/nag ... ios-XI.pdf

On the remote system:
-- go to /usr/local/nagios/libexec
Using your favorite editor (what fun!), copy the text and save as it as check_jvm
-- make it executable chmod +x check_jvm