Seite wählen

Monitoring J2EE with Nagios

von | Okt 15, 2009 | Nagios

faqThe topic has popped up in a few of our conversations recently, and we realized how little known the methods of monitoring Java Enterprise Edition may be. Being fans of the guys from ConSol , we’d thought we’d share the less known but noteworthy alternative.
To start, the typical way to monitor a Java based client is via JSR-160 connectors and check_jmx. This enables you to monitor a bunch of JMX attributes in Nagios through the JMX interface, since the JMX is embedded in Java. These include memory, threads, operating system, garbage collector parameters and various application server attributes.
Check_jmx works well, but takes a while. Though Java itself runs quickly, JVM is slow to start up. This has a noticeable effect when running checks, which can heavily load the server with each round.
An alternative method is via jmx4perl. We like it because it runs checks much faster, accessing JMX without launching JVM or needing a Java installation on the Nagios host. Using a perl library, its proxy approach is straightforward and efficient, making it also fitting for large environments. Apart from being faster, it supports relative and incremental measurements, and accesses deeper to more complex Java bean attributes.
Check_jmx is useful, if you are familiar with the default jmx monitoring settings and are monitoring just a few systems. For the larger environments however, we give our thumbs up to check_jmx4perl, because with more speed you can do more checks.
As always, both plugins are available for download at MonitoringExchange.org:
Check_jmx
Check_jmx4perl

0 Kommentare

Trackbacks/Pingbacks

  1. Weekly Snap: J for Jasper and J2EE monitoring - Oct 12-16 , Jasper, Bernd, J2EE, Quartz, Scheduler, Bernd’s, Building - NETWAYS Blog - [...] monitoring J2EE with Nagios, we briefly touched on two methods- the standard check_jmx and the less known, though noteworthy…
  2. Project of the Month: Mule for Enhanced Distributed Monitoring - March 2010, Sweden, Germany, America, These, Supported, Moreover, NDOIDO-DB - NETWAYS Blog - [...] into a centralised system also meant the entire process itself could be more easily monitored with the handy check_jmx4perl.…

Einen Kommentar abschicken

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert

Mehr Beiträge zum Thema Nagios

Be a speaker at the OS Monitoring Conference this year!

  We have some strong points for you to be a speaker at the Open Source Monitoring Conference 2018. Add new research to your list - Talk about your newest findings in development at the OSMC. Increase your productivity -  Writing a paper with your findings, tips,...