0% found this document useful (0 votes)
222 views16 pages

Weblogic Mail Notification For Server Health

Download as pdf or txt
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 16

0

IT.002-Informasi Property
Integration Test Script

Technical Document

Mail Notification for Weblogic


Server Health State
v.1.0, 20 April 2015

Weblogic - Mail Notification for Server Health-1.0.docx

Proprietary and Confidential

Deployment Documentation Mail Notification for Server


Health State
Technical Document

Copyright 2015 PT Astra Graphia Information Technology. All rights reserved.


This document contains confidential information and may only be divulged to people with a need to know. ALL INFORMATION CONTAINED HEREIN
SHALL BE KEPT IN CONFIDENCE. None of this information shall be divulged to persons other than PT Astra Graphia Information Technology employees
authorized by the nature of their duties to receive such information, or individuals of organizations authorized by PT Astra Graphia Information Technology in
accordance with existing policy regarding release of company information

Weblogic - Mail Notification for Server Health-1.0.docx

Proprietary and Confidential

Page 2 of 16

Deployment Documentation Mail Notification for Server


Health State
Technical Document

MODIFICATION HISTORY
Version
1.0

Released On
April 20, 2015

Author
Riswanto, Raditya Lucky

Changes Done
Initial Release.

RELATED DOCUMENTS
Document

Weblogic - Mail Notification for Server Health-1.0.docx

Version

Proprietary and Confidential

Released On

Page 3 of 16

Deployment Documentation Mail Notification for Server


Health State
Technical Document

CONTENTS
Modification History ........................................................................................................................................................................... 3
Related Documents ............................................................................................................................................................................. 3
Contents .............................................................................................................................................................................................. 4
1

Overview ..................................................................................................................................................................................... 5

Deployment Step ........................................................................................................................................................................ 6


2.1

Set Up The Mail Session Object ......................................................................................................................................... 6

2.2

Set up a Diagnostic Module and define a metric of interest as a Collected Metric .......................................................... 8

2.3

Setting up the Notification .............................................................................................................................................. 10

2.4

Set up a new Watch rule and associating it with a certain NOTIFICATION ..................................................................... 12

Weblogic - Mail Notification for Server Health-1.0.docx

Proprietary and Confidential

Page 4 of 16

Deployment Documentation Mail Notification for Server


Health State
Technical Document

OVERVIEW

This document is describing about the steps for Oracle Webcenter Content deployment component and configuration from
development server to production server. This document is contains steps to add Configuration for Sever Watches and
Notification. So when server come into Unknown or Down state, Weblogic will send email notification to admin.

Weblogic - Mail Notification for Server Health-1.0.docx

Proprietary and Confidential

Page 5 of 16

Deployment Documentation - Mail Notification for Server Health State


Technical Document

DEPLOYMENT STEP

We will set up alerts on the state of the Weblogic Managed Server, so the admin will get a notification when a server is not in
the RUNNING state.

2.1
1.

2.

SET UP THE MAIL SESSION OBJECT


Login to Weblogic Console http://localhost:7101/console

Expand Services -> Mail Sessions and click New to create a new Java Mail Session object

Weblogic - Mail Notification for Server Health-1.0.docx

Proprietary and Confidential

Page 6 of 16

Deployment Documentation - Mail Notification for Server Health State


Technical Document
3.

Provide Name, JNDI Name and JavaMail Properties as follow:


Name
MyMailSession
JNDI Name
MyMailSession (Its best to keep the same value for the two names)
JavaMail Properties
mail.debug=true troubleshoot why alerts are not getting through
mail.host=localhost
mail.smtp.password=welcome1
mail.smtp.port=25
mail.transport.protocol=smtp
mail.smtp.user=admin
mail.from=admin@agit.co.id

4.

Click next to target the mail session to a server (either managed or AdminServer) and click finish. You need to do this so
that the MailSession is exposed on the servers JNDI tree.

Weblogic - Mail Notification for Server Health-1.0.docx

Proprietary and Confidential

Page 7 of 16

Deployment Documentation - Mail Notification for Server Health State


Technical Document

2.2

SET UP A DIAGNOSTIC MODULE AND DEFINE A METRIC OF INTEREST AS A COLLECTED METRIC

1.

Expand Diagnostics -> Diagnostics Modules and click Module-FMWDFW

2.

Click on the Collected Metrics tab and click New

3.

Select ServerRuntime and click Next

Weblogic - Mail Notification for Server Health-1.0.docx

Proprietary and Confidential

Page 8 of 16

Deployment Documentation - Mail Notification for Server Health State


Technical Document
4.

Select ServerRuntimeMBean from the dropdown

5.

From the list of collected attributes select State and move it in the Chosen category; Click Next

6.

From the instances list select the servers you would like to be informed about by selecting an instances and moving it to
the Chosen category

7.

Click Finish

Weblogic - Mail Notification for Server Health-1.0.docx

Proprietary and Confidential

Page 9 of 16

Deployment Documentation - Mail Notification for Server Health State


Technical Document

2.3

SETTING UP THE NOTIFICATION


1.

Expand Diagnostic Module and click Module-FMWDFW

2.

Navigate to the diagnostic module created above and select Configuration, the Watches and Notifications tab and
Notification sub-tab. Click New to create a new Notification

3.

Select SMTP (E-Mail) for Type and click Next

Weblogic - Mail Notification for Server Health-1.0.docx

Proprietary and Confidential

Page 10 of 16

Deployment Documentation - Mail Notification for Server Health State


Technical Document
4.

Provide a name ServerStateNotification. The notification must be enabled, of course. Click Next.

5.

Configure the following properties for the Config Notification SMTP Properties page and Click Finish
Mail Session Name
MyMailSession
E-Mail Recipients
user@agit.co.id
E-Mail Subject
[Server] Weblogic Server State Notification

Weblogic - Mail Notification for Server Health-1.0.docx

Proprietary and Confidential

Page 11 of 16

Deployment Documentation - Mail Notification for Server Health State


Technical Document

2.4

SET UP A NEW WATCH RULE AND ASSOCIATING IT WITH A CERTAIN NOTIFICATION

1.

Expand Diagnostics -> Diagnostics Modules and click Module-FMWDFW

2.

Click Configuration, Wathes and Notifications and Watches. Click New to create a new Watch

3.

Provide the name ServerStateWatch and select the type as Collected Metrics. Also make sure the watch is enabled.

Weblogic - Mail Notification for Server Health-1.0.docx

Proprietary and Confidential

Page 12 of 16

Deployment Documentation - Mail Notification for Server Health State


Technical Document
4.
5.

Click Next
Click Add Expressions

6.

Ensure that ServerRuntime is selected and click Next

7.

From the dropdown, select ServerRuntimeMBean again. The click Next

Weblogic - Mail Notification for Server Health-1.0.docx

Proprietary and Confidential

Page 13 of 16

Deployment Documentation - Mail Notification for Server Health State


Technical Document
8.

Select the instance for the appropriate server from the list for Instance and click Next

9.

For Message Attribute select State, != for Operator and type RUNNING (all capital letters) for Value. Click
Finish the Watch. This Watches will call notification when the server shut down (not running). The value of the
expression can be add with value BEA-000365 which mean error code for the server down.

10. The page will be redirected to the Configure Watch Rule Expression and the Current Watch Rule is filled automaticly. Click
Next

Weblogic - Mail Notification for Server Health-1.0.docx

Proprietary and Confidential

Page 14 of 16

Deployment Documentation - Mail Notification for Server Health State


Technical Document
11. Choose the Dont use an alarm and click Next

12. Configure Notification for Watches that have created ServerStateNotification

Weblogic - Mail Notification for Server Health-1.0.docx

Proprietary and Confidential

Page 15 of 16

Deployment Documentation - Mail Notification for Server Health State


Technical Document
13. Info that the Watch have been created successfully.

Weblogic - Mail Notification for Server Health-1.0.docx

Proprietary and Confidential

Page 16 of 16

You might also like