Page 1 of 1
Monitoring JVM w/ Nagios
Posted: Fri Dec 28, 2012 1:16 pm
by disrael
Is there anyway to have nagios report tomcat internals like mem usage, etc?
Kind Regards,
Doron
Re: Monitoring JVM w/ Nagios
Posted: Fri Dec 28, 2012 1:41 pm
by slansing
Re: Monitoring JVM w/ Nagios
Posted: Fri Dec 28, 2012 3:38 pm
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.
Re: Monitoring JVM w/ Nagios
Posted: Wed Jan 02, 2013 10:57 am
by scottwilkerson
thx
Re: Monitoring JVM w/ Nagios
Posted: Wed Jan 02, 2013 3:46 pm
by disrael
Can Jolokia be intergrated into Nagios or is this a seperate application for monitoring JVM?
Re: Monitoring JVM w/ Nagios
Posted: Wed Jan 02, 2013 3:57 pm
by disrael
Re: Monitoring JVM w/ Nagios
Posted: Wed Jan 02, 2013 4:00 pm
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.
Re: Monitoring JVM w/ Nagios
Posted: Sun Jan 06, 2013 12:35 am
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.
Re: Monitoring JVM w/ Nagios
Posted: Mon Jan 07, 2013 10:11 am
by scottwilkerson
Thanks Mitchell!