Monitoring for Tomcat jvm load

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
trafalgargirl
Posts: 80
Joined: Tue Feb 09, 2016 12:17 pm
Location: Montreal, Quebec, Canada

Monitoring for Tomcat jvm load

Post 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
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Monitoring for Tomcat jvm load

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Monitoring for Tomcat jvm load

Post 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
Be sure to check out the Knowledgebase for helpful articles and solutions!
Locked