Tuesday, 16 February 2016

How to Configure Weblogic Server to Send a Notification When its Configuration is Changed

                        Email Notification

1Change 1:
Log into http://localhost:port/console
Go to the Services ->Mail Sessions , Click New
Name=ITSB_Prod_MailSession
JNDI Name=ITSB_Prod_MailSession
JavaMail Properties:---
 mail.smtp.host=hmail.tdk.dk
mail.transport.protocol=smtp
mail.from=skrms@gmail.com
click Next
select itsb_admin and choose All servers in the cluster
click finish
Activate changes

Change2:
Go to the Diagnostics → Diagnostic Modules
Click Module Name Module-FMWDFW
Click Watches and Notifications
Click Notifications ,
New,  Type = SMTP(E-Mail)
Next , Notification Name = ITSB2_Prod_Notification
Enable Notification = True  , Next
Mail Session Name = ITSB_Prod_MailSession
E -Mail Recipients = mail id's
E – Mail Subject = ALERT: ITSB 2 Production Server Change Configuration
Finish
Activate changes


Change 3:
Go to the Diagnostics → Diagnostic Modules
Click Module Name Module-FMWDFW
Click Watches and Notifications
Click Watches , New
Watch Name =ITSB2_Prod_Configuration
Watch Type  =Server log
Check the check box beside Enable Watch
Watch Rule:
('(USERID != \'<wls kernel="">\') AND (MESSAGE LIKE \'%MODIFIED%\' OR MESSAGE LIKE \'%CREATED%\' OR MESSAGE LIKE \'%REMOVED%\') AND (SUBSYSTEM = \'Configuration Audit\')')
Next , Select the Use an automatic reset alarm
Chosen the ITSB2_Prod_Notification
Finish
Repeat the steps 1 to 3
Select the  Severity = Notice
   Log Watch Severity = Info
 And
domain -> Configuration -> General -> Advanced settings and set the Configuration Audit Type to "Change Log":

No comments:

Post a Comment