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.
1. Download wlsagent tar from below URL :
http://{nagiosxi_address}/nagiosxi/includes/configwizards/java-as/plugins/wlsagent.tar.gz
2. Extract the archive and put all files into C:\Program Files (x86)\Nagios\NCPA\plugins
3. Execute the following commands to generate and copy the WebLogic client library files:
cd $ORACLE_HOME\wlserver\server\lib
java -jar modules\com.bea.core.jarbuilder.jar
4. Copy the below files into : C:\Program Files (x86)\Nagios\NCPA\plugins\
wlclient.jar
wljmxclient.jar
wlfullclient.jar
5. Create a run.bat file at C:\Program Files (x86)\Nagios\NCPA\plugins with the below content :
6. Create a vbs Script to run the batch file in silent and invisible mode: Create a file wlsagent_run.vbs with the below content:
7. Run the wlsagent_run.vbs by double clicking and the batch script will run as invisible/background.
8. 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
9. To configure the Weblogic Monitoring Wizard from Nagios XI, see the The WebLogic Configuration Wizard section in Monitoring WebLogic.
Article ID: 903
Created On: Mon, Jun 21, 2021 at 12:57 PM
Last Updated On: Mon, Jun 21, 2021 at 4:43 PM
Authored by: rspielman
Online URL: https://support.nagios.com/kb/article/monitoring-weblogic-on-windows-903.html