Build precise queries to find exactly what you need
Press ESC to close
Nagios World Conference 2026: Sept. 14-17 in St. Paul, MN | Learn More
Your review has been submitted and is pending approval.
A simple plugin that monitor tomcat, jboss and any java application HEAP level Memory utilization.
Current Version
1.5
Last Release Date
2015-04-06
Owner
pawan
Download URL
https://exchange.nagios.org/wp-content/uploads/project-files/2015/02/check_tomcat.sh
License
GPL
Compatible With
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
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
[/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}"
You must be logged in to submit a review.
To:
From: