Monitoring JVM w/ Nagios

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
disrael
Posts: 116
Joined: Tue Jun 19, 2012 3:16 pm

Monitoring JVM w/ Nagios

Post by disrael »

Is there anyway to have nagios report tomcat internals like mem usage, etc?

Kind Regards,

Doron
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Monitoring JVM w/ Nagios

Post by slansing »

Is this something along the lines you were thinking?

http://exchange.nagios.org/directory/Pl ... pl/details
User avatar
Mitchell
Posts: 130
Joined: Thu Jan 05, 2012 2:33 am

Re: Monitoring JVM w/ Nagios

Post by Mitchell »

http://jolokia.org/ is a good choice if you have whole bunch of JVM's to monitor and have lots of counters to monitor.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Monitoring JVM w/ Nagios

Post by scottwilkerson »

thx
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
disrael
Posts: 116
Joined: Tue Jun 19, 2012 3:16 pm

Re: Monitoring JVM w/ Nagios

Post by disrael »

Can Jolokia be intergrated into Nagios or is this a seperate application for monitoring JVM?
disrael
Posts: 116
Joined: Tue Jun 19, 2012 3:16 pm

Re: Monitoring JVM w/ Nagios

Post by disrael »

Also is this compatible with Nagios XI?

http://exchange.nagios.org/directory/Pl ... rl/details
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: Monitoring JVM w/ Nagios

Post by nscott »

Jolokia appears to be an accessor for JVM metrics, so you would have it run parallel with your JVM, and then you'd have to right some sort of plugin to monitor what you wanted.

A nice tutorial can be found here:

http://www.jolokia.org/tutorial.html

And once you have Jolokia up and running, here is an example of how to use the Perl adapter jmx4perl

http://www.jolokia.org/client/perl.html

Where in this example, it is simply querying the Jolokia server for a metric, and then printing it out.
Nicholas Scott
Former Nagios employee
User avatar
Mitchell
Posts: 130
Joined: Thu Jan 05, 2012 2:33 am

Re: Monitoring JVM w/ Nagios

Post by Mitchell »

Jolokia is new name for jmx4perl http://exchange.nagios.org/directory/Pl ... rl/details

It has 2 pieces
A) agent : This can be installed in the JVM which needs be monitored or use it in Proxy mode to avoid installing in every JVM
B) Nagios plugin : the check_jmx4perl which you will need to connect to the agent to pull matrices.

We use it in proxy mode to monitor over 50 remote JVMs and works really nice.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Monitoring JVM w/ Nagios

Post by scottwilkerson »

Thanks Mitchell!
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked