Search Exchange

Search All Sites

Nagios Log Server Now Available - Download Now

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

check_TomcatApplication

Bookmark and Share

Rating
3 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
E-mail
License
GPL
Hits
67195
Files:
FileDescription
check_TomcatApplication.shversion 1.02
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 (2)
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.