Products
This article details setup steps specific to monitoring WebLogic when on a Windows platform.
This document is assumes you have the following:
A remote WebLogic server on a Windows platform
A Nagios XI server with a network route to the WebLogic server
The monitoring of the WebLogic server is performed by the WLSAgent. This can be accessed via NCPA. You must install NCPA on your Windows server.
http://{nagiosxi_address}/nagiosxi/includes/configwizards/java-as/plugins/wlsagent.tar.gz
Extract the archive and put all files into C:\\Program Files (x86)\\Nagios\\NCPA\\plugins
Execute the following commands to generate and copy the WebLogic client library files:
NOTE: $ORACLE_HOME is your Oracle/WebLogic application folder
cd $ORACLE_HOME\wlserver\server\lib
java -jar modules\com.bea.core.jarbuilder.jar
C:\\Program Files (x86)\\Nagios\\NCPA\\plugins\\- wlclient.jar
- wljmxclient.jar
- wlfullclient.jar
C:\\Program Files (x86)\\Nagios\\NCPA\\plugins with the below content:###### @ECHO OFF
###### java -Xmx32m -cp "C:\\Program Files (x86)\\Nagios\\NCPA\\plugins\\wlsagent.jar;C:\\Program Files (x86)\\Nagios\\NCPA\\plugins\\servlet-api-2.5.jar;C:\\Program Files (x86)\\Nagios\\NCPA\\plugins\\jetty-servlet-7.6.2.v20120308.jar;C:\\Program Files (x86)\\Nagios\\NCPA\\plugins\\wlclient.jar;C:\\Program Files (x86)\\Nagios\\NCPA\\plugins\\lib\\wljmxclient.jar;C:\\Program Files (x86)\\Nagios\\NCPA\\plugins\\lib\\wlfullclient.jar;" net.wait4it.nagios.wlsagent.core.WLSAgent 0.0.0.0 9090
wlsagent_run.vbs with the below content:###### Set WshShell = CreateObject("WScript.Shell")
###### WshShell.Run chr(34) & "C:\\Program Files (x86)\\Nagios\\NCPA\\plugins\\run.bat" & Chr(34), 0
###### Set WshShell = Nothing
Run the wlsagent_run.vbs by double clicking and the batch script will run as invisible/background.
To configure the Script to run at startup, open regedit and create a string value at the below location :
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
name: wlsagent_run
type: REG_SZ
Data: WScript C:\\"Program Files (x86)"\\Nagios\\NCPA\\plugins\\wlsagent_run.vbs
© All rights reserved. 2026