Apache Tomcat

check_TomcatApplication updated

Description:

This is an updated version of : http://exchange.nagios.org/directory/Plugins/Java-Applications-and-Servers/Apache-Tomcat/check_TomcatApplication/details

The reason for my update was the script was very useful but did not generated any graphical output for (pnp4nagios)

./check_TomcatApplication.sh -u USER -p PASS -H HOST -P 8081 -a myapp

myapp_JVM_OK:|myapp_JVM_free=263281744MB;;;0 myapp_JVM_total=1063714816MB;;;0 myapp_JVM_max=1063714816MB;;;0

myapp_http-8081 OK:|http-8081_maxTime=260ms;;;0 http-8081_processingTime=6108ms;;;0 http-8081_requestCount=5857ms;;;0 http-8081_errorCount=2925ms;;;0 http-8081_bytesReceived=0ms;;;0 http-8081_bytesSent=12998001ms;;;0

myapp_jk-8010 OK:|jk-8010_maxTime=66555ms;;;0 jk-8010_processingTime=3570368ms;;;0 jk-8010_requestCount=15171ms;;;0 jk-8010_errorCount=2ms;;;0 jk-8010_bytesReceived=0ms;;;0 jk-8010_bytesSent=113444017ms;;;0

Current Version

1.0

Last Release Date

2013-04-23

Compatible With

  • Nagios 3.x

License

GPL


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!
Project Files
Project Notes
Reviews (4) Add a Review
Does check what?
by jan.szczepanski, April 30, 2016
We have 5 running apps, they are in the /manager/list or /manager/html/list. No matter what you enter, the "Application" is not running. Always the same error message, even if you enter wrong password or user name.
Helpful? Yes  No 
works swell.
by jamess, March 31, 2014
fyi: afaik for tomcat7 you must grant your authorized tomcat user the "manager-script" role and then modify the script to add the /text/ to the url.

wget -o /dev/null -O - http://$USER:$PASSWORD@$HOST:$PORT/manager/list | grep -q "^/$APP:running"

wget -o /dev/null -O - http://$USER:$PASSWORD@$HOST:$PORT/manager/text/list | grep -q "^/$APP:running"
1 of 1 found this review helpful.
Helpful? Yes 1 No 0
Tomcat 5.5 support
by phanidileep, January 31, 2014
Hi, I am getting this error when testing for tomcat 5.5

./check_TomcatApplication.sh: line 4: syntax error near unexpected token `newline'
./check_TomcatApplication.sh: line 4: `'
Owner's Reply:

I am unsure but I think you may have not downloaded the script properly ? can you cat the script is it really a script or have you downloaded the github page ?

try wget https://raw.github.com/vahidhedayati/check_TomcatApplication/master/check_TomcatApplication.sh and attempt it again

If I do wget https://github.com/vahidhedayati/check_TomcatApplication/blob/master/check_TomcatApplication.sh

Then I attempt to execute it I get the same error ./check_TomcatApplication.sh: line 6: syntax error near unexpected token `newline'


But then what I have downloaded is a html page


0 of 1 found this review helpful.
Helpful? Yes  No 1
Nice update
by jesuslopez, November 30, 2013
Thanks for posting an updated version of the plug-in the additional metrics are good. I did note a couple of minor corrections for your consideration.

The current usage string incorrectly indicates lower case -h for host:
echo "$PROGNAME -u user -p password -h host -P port -a application"

Also, the output shows memory in units of MB, but is really bytes:
This should either be divided by 1024^2 or change units to B.

Thanks again.
Owner's Reply:

Thanks the main source on github https://github.com/vahidhedayati/check_TomcatApplication/check_TomcatApplication.sh
has been updated to reflect your notes.


1 of 1 found this review helpful.
Helpful? Yes 1 No 0
Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
3.2 (5)
Favorites
0
Views
47,070