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_tomcat_heap

Rating
2 votes
Favoured:
2
Current Version
1.5
Last Release Date
2015-04-06
Compatible With
  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
  • Nagios 4.x
  • Nagios XI
License
GPL
Hits
19135
Files:
FileDescription
check_tomcat.shcheck_tomcat.sh
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!
A simple plugin that monitor tomcat, jboss and any java application HEAP level Memory utilization.
This plugin will use to monitor HEAP Level of tomcat, jbossand any java application Memory Usages.


make sure java application name is correct.
check_tomcat -p

You can monitor any java application by using proper java process name

For example tomcat process name

Usages in nrpe.conf: command[check_tomcat]=/usr/lib64/nagios/plugins/check_tomcat -p Boot -w 80 -c 90

Plugin will check exact usages of HEAP. it will Provide details of
total heap and PERM Generation utilization details.

OUTPUT OF COMMAND:


./check_nrpe -H localhost -c check_tomcat

OK: Process Tomcat alive - pid=31268 heap=3196 MB;16384 MB;19 perm=170 MB;512 MB;33

<<< 3GB used out of 16GB, 19% used.



Specify the user name under which tomcat is deployed in plugin. Make sure nagios/nrpe have access to run java commands and setup in sudo. run Dos2unix to use this script



Reviews (1)
byjose.a.guardia, May 30, 2016
0 of 1 people found this review helpful
[/usr/local/nagios/libexec]# ./check_tomcat_heap.sh
./check_tomcat_heap.sh: 6: ./check_tomcat_heap.sh: Syntax error: "(" unexpected

The line is:
local prog="${1:-check_jstat.sh}"