Header RSS Feed
» Nagios Plugins

Nagios Plugin: Weblogic Memory Heap Size

Last Update: May 26, 2014

This plugin will check the current memory usage of your Weblogic application.

Download check_equallogic check_weblogic_heap
Download plugin and save it in your Nagios plugin folder (e.g. /usr/local/nagios/libexec)
2865 downloads so far...

Version History
20110930 Created plugin
20111003 Catching connection/authentication problem

This plugin was developped and tested on Linux systems (especially SLES11) and runs with Bash 3.x.


Before you begin: Adjust Weblogic variable in plugin

The plugin requires Weblogic to be installed on the server on which the plugin should be executed.
Before you start launching it on your Weblogic server, you must adjust the variable WL_HOME in the plugin. Set it so that it fits the root/home installation folder of your Weblogic installation:

# Define Variables
# a) Enter the root directory of your Weblogic installation e.g.:
# WL_HOME=/opt/weblogic/Oracle/Middleware/wlserver_10.3

Another important and necessary information is the JAVA path. The java binary folder must be in the $PATH variable of your environment. If you know what $PATH means, you understand what there is to do. If not, please set the variable JAVA_HOME in the plugin to your java installation (the folder in which you will find the binary files 'java', 'javac', etc.):

# b) If Java installation is not yet in your $PATH, enter it here:



On the command line as nagios user:

./check_weblogic_heap -H HOST -P PORT -u username -p password [-w warning] [-c critical]
./check_weblogic_heap -H localhost -P 7001 -u weblogic -p mypass
./check_weblogic_heap -H localhost -P 7001 -u weblogic -p mypass -w 80 -c 90


Command definition in your nrpe.cfg:

As the plugin must be executed on the Weblogic server itself, I suggest to launch the plugin as nrpe command:

# 'check_weblogic_heap' command definition with thresholds
command[check_weblogic_heap]=/usr/lib/nagios/plugins/check_weblogic_heap -H localhost -P 7001 -u weblogic -p mypass -w 80 -c 90

# 'check_weblogic_heap' command definition just info output
command[check_weblogic_heap]=/usr/lib/nagios/plugins/check_weblogic_heap -H localhost -P 8001 -u weblogic -p mypass

As one can see, the -w and -c parameter (thresholds) are optional. If they're not given, the plugin will only return OK and output the current utilisation as information.


Service check:

# Check Weblogic Heap
define service{
use generic-service
host_name weblogic-server
service_description Weblogic Memory Heap
check_command check_nrpe!check_weblogic_heap


Nagios screenshots:

check weblogic heap OK

check weblogic heap connection critical

Go to Homepage home
Linux Howtos how to's
Monitoring Plugins monitoring plugins
Links links

Valid HTML 4.01 Transitional
Valid CSS!
[Valid RSS]

6905 Days
until Death of Computers