Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

check_TomcatApplication

Rating
4 votes
Favoured:
1
Current Version
1.02
Last Release Date
2014-09-08
Compatible With
  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
  • Nagios 4.x
  • Nagios XI
License
GPL
Hits
86331
Files:
FileDescription
check_TomcatApplication.shversion 1.02
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
check_TomcatApplication is a Nagios plugin to check a specific Tomcat Application.

2014-09-08
The plugin has been updated and new implementations will be developed.
check_TomcatApplication -u user -p password -h host -P port -a application

Options:
-u/--user)
User name for authentication on Tomcat Manager Application
-p/--password)
Password for authentication on Tomcat Manager Application
-h/--host)
Host Name of the server
-P/--port)
Port Number Tomcat service is listening on
-a/--appname)
Application name to be checked
-V/--tomcat_version)
Version of the Tomcat. Default is Tomcat 6

v1.02 released 2014-09-08
Added performance data (http://exchange.nagios.org/directory/Plugins/Java-Applications-and-Servers/Apache-Tomcat/check_TomcatApplication-updated/details)
Compatibility with the latest version of Tomcat. Added the parameter "-V" to indicate the version of Tomcat.
In Tomcat 7 the user need the role manager-script.

v1.01 released 2012-05-29 Adjust message when application not running.
Reviews (3)
Doesn't work at all.
Does check what? Right, no correct user, password. I can see the applications running via the webinterface script tells me they are not available.
The AWK for perf info doesn't seem to work just right for Tomcat7.

First line returns:
myapp_JVM_OK:|myapp_JVM_MB;;;0 myapp_JVM_MB;;;0 myapp_JVM_MB;;;0

Perf stats also assume that this app is the only one on the app server. I'm commenting out this perf data and will probably pull in as a separate service check. All will add my own AWK to pull the session count for the app requested as well as returning the last value of the line (which is myapp##

Thanks for this though! Got me going in the right direction.
bydanielm, October 30, 2014
1 of 1 people found this review helpful
Very usefull. Exactly what I was looking for. Simple and effective.