Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_tomcat_heap
1.5
2015-04-06
- Nagios 1.x
- Nagios 2.x
- Nagios 3.x
- Nagios 4.x
- Nagios XI
GPL
19135
File | Description |
---|---|
check_tomcat.sh | check_tomcat.sh |
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!
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
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)
[/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}"
./check_tomcat_heap.sh: 6: ./check_tomcat_heap.sh: Syntax error: "(" unexpected
The line is:
local prog="${1:-check_jstat.sh}"