Is there anyway to have nagios report tomcat internals like mem usage, etc?
Kind Regards,
Doron
Monitoring JVM w/ Nagios
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Monitoring JVM w/ Nagios
Is this something along the lines you were thinking?
http://exchange.nagios.org/directory/Pl ... pl/details
http://exchange.nagios.org/directory/Pl ... pl/details
Re: Monitoring JVM w/ Nagios
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
Can Jolokia be intergrated into Nagios or is this a seperate application for monitoring JVM?
Re: Monitoring JVM w/ Nagios
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.
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
Former Nagios employee
Re: Monitoring JVM w/ Nagios
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.
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
Thanks Mitchell!