TOP LEVEL CATEGORIES
EXPLORE
Description:
A Nagios plugin to get memory statistics of a Java application using jstat
Current Version
1.2
Last Release Date
2012-08-23
Compatible With
Owner
Eric Blanchard
Website
http://github.com/Ericbla/check_jstat
Download URL
License
LGPL
The check command
A Nagios plugin to get memory statistics of a Java application using jstat.
The process selection is done either by:
It then call jstat -gc and jstat -gccapacity to catch current and maximum heap and perm sizes. What is called heap here is the edden + old generation space, while perm represents the permanent generation space.
If specified (with -w and -c options) values can be checked with WARNING or CRITICAL thresholds (apply to both heap and perm regions).
This plugin also attach perfomance data to the output: pid=pid heap=heap-size-used;heap-max-size;%ratio;warning-threshold-%ratio;critical-threshold-%ratio perm=perm-size-used;perm-max-size;%ratio;warning-threshold-%ratio;critical-threshold-%ratio
Usage:
chech_jstat.sh -v Print version and exit" chech_jstat.sh -h Print this help nd exit chech_jstat.sh -p [-w <%ratio>] [-c <%ratio>] chech_jstat.sh -s [-w <%ratio>] [-c <%ratio>] chech_jstat.sh -j [-w <%ratio>] [-c <%ratio>] -p the PID of process to monitor -s the service name of process to monitor -j the java app (see jps) process to monitor if this name in blank (-j '') any java app is looked for (as long there is only one) -w <%> the warning threshold ratio current/max in % -c <%> the critical threshold ratio current/max in %
This plugin may require to be run with sudo. In this case add a configuration in /etc/sudoers. For example if nagios is the user that run nagios (or NRPE deamon):
Defaults:nagios !requiretty nagios ALL=(root) NOPASSWD: /opt/nagios/libexec/check_jstat.sh
You must be logged in to submit a review.
Your review has been submitted and is pending approval.
To:
From:
Your recommendation has been sent.