WebLogic Managed Servers Health States Automation with WL-OPC

WLSDM for WebLogic
WLSDM for WebLogic
Published in
3 min readDec 30, 2020


WL-OPC (WLSDM OPERATION CENTER) is the operation central and notification system which enables to manage application server infrastructure. You are going to able to manage, organize and visualize with WL-OPC;

How to Create a Notification Actions ?

WLSDM notifications can be managed from WL-OPC. Application, Datasource, JMS, Server and Domain’s health notifications can trigger the custom scripts. In this article about to restarting the server when the servers states are shutdown.

1- Open WL-OPC console and Nativate to “Administration > Notification Actions”.
2- In the “Create Action” panel select Notification Type as “Health ALERT(Server)”
3- Define absolute path of script file.
4- Set timeout(second) value for script execution.
5- Click Save.

Notification Action Configurations

Creating Action and Restart Script
When Notification occurs, WL-OPC creates a json file under the ${WL_OPC}/temp directory. This json file structure and how the variable structure will be examined from the “Administrator > Notification Rules” page.

Server Health Alert — Notification Data Structure

We are going to parse the incoming json file, read the password of the domain from the csv file and restart managed servers via wlst. When we examine the script, path definitions will be made on line #3–4–5. WL-OPC passing an json file path like “$_path/WLOPC/temp/123412.json”. We parse the quotation marks and then assign the file to the $_tmpJson variable. Then we use jq and parse FULL_DOMAIN_NAME value. After getting the hostname, we search for hostname in csv file and get the password column.
Servers with HealthState “shutdown” are parsed from within bodyRow
then it is assigned to the serverBodies variable. Finally, server information and restart script will be running on WLST to restart the provided server.


The contents of the hostPass.csv and restartServer.py files are as shown in the following screenshots. “restartScript.py” basicly gets the parameters. Subsequently, connect the domain and starts the managed server.



Consolidate all your Oracle FMW WebLogic domain health and states in a single page in WL-OPC Health dashboard. After all, you can get under control all domain healths via above script then enjoy your healty domains…

Please watch youtube video tutorial about WebLogic instances health control with WL-OPC:

Installation is really easy and you can setup a complete monitoring infrastructure in less than 5 minutes. If you want to try then go to download page below URL: