Friday, August 19, 2011

How to configured mail Alerts in OEM 11g for WebLogic Servers up/down status?

To setup mail alerts in OEM 11g,

1. First step would be to set the Notification Methods.
Goto Setup (On Right top of OEM UI)->Notification Methods (On left Panel).
It should give you page to setup Mail Server for notifications
Outgoing Mail (SMTP) Server -
User Name                   - myadmin
Password                    - ******
Confirm Password            - ******
Identify Sender As          - Enterprise Manager
Sender's E-mail Address     -
Use Secure Connection       - No : E-mail is not encrypted.
                              SSL: E-mail is encrypted using the Secure Sockets Layer protocol.
                              TLS, if available: E-mail is encrypted using the Transport Layer Security protocol if the mail server supports TLS. If the server does not support TLS, the e-mail is automatically sent as plain text.

2. Second step would be to setup email for an OEM user
To receive email notification, specify email address(s) on Preference page.
Goto Preferences (On Right top of OEM UI)->General (On left Panel).
Add email address(s) and Test it(them).

3. Third step is to select a Notification Schedule [Optional for this usecase]
Goto Preferences (On Right top of OEM UI)->Notification Schedule(On left Panel).
By default, for the first time, 24x7 weekly notification schedule is set automatically.
A notification schedule is a repeating schedule used to specify your on-call schedule—the days and time periods and e-mail addresses that should be used by Enterprise Manager to send notifications to you. Each administrator has exactly one notification schedule.

4. Fourth step is to create a Notification Rule for WebLogic Domains/Servers and subscribe to it, to receive an e-mail
A notification rule is a user-defined rule that defines the criteria by which notifications should be sent for alerts, policy violations, corrective action, execution status and job execution status.

a. Goto Preferences (On Right top of OEM UI)->Notification-> Rules(On left Panel). [For a super administrator, it will be display Rules while for a normal administrator, it will be My Rules]

b. Click Create button.
It will display "Create Notification Rule" pages. Enter the required information on each page to create your notification rule.

e.g. In General tab, Provide rule
-name as "WebLogic Server Availability and Critical States"
-Description as "WebLogic Server Availability and Critical States"
-Select 'Make Public' check box
-Select 'Target Type' as "Oracle Weblogic Server"
-Select appropriate radio button to apply rule to all Weblogic Servers or selective Weblogic Servers.
In our case, lets select 'Apply rule to all Oracle WebLogic Server targets' radio button.

On Availability tab,
Select 'Up' and 'Down' Checkboxes (and any other status that you are interested in)

If you have chosen any metrics, then add those metrics under Metrics tab.
One can add policies/jobs via Policies/Jobs tabs.

On Actions tab,
Select 'E-mail Notification', 'Send Me E-mail' checkbox.

Select OK Button.

Note: Notification rules allow you to choose the targets and conditions for which you want to receive notifications from Enterprise Manager. These notifications include e-mail, SNMP traps and running custom scripts.

For more details about various Notification options and Out of Box rules etc., pl refer


vinay said...

Thanks For the post. Does this process help in getting alert for the Weblogic Admin Server and its managed servers.

Neelima Bawa said...

Yes. If you are monitoring these WLS using OEM, you can get alerts for them.

Anonymous said...

good one. Can i automate reports and email to folks who are not listed in enterprise manager like I want to send a mail to a group consisting of a report which includes metrics like cpu memory usage, database, application and webserver metrics ?

Neelima Bawa said...

You should be able to send mail to any email id. You need to set this email id against any of the existing EM user.

Anonymous said...

Hi Neelima thanks for the wonderful information..Currently my emgc is monitoring the UP/DOwn status only. My Basic requirement is to monitor the WLS State when it goes from Running to Admin state due to application/datasource unavailablity through jmx or via metrics and also monitor the WLS datasource health using jmx . We dont have any plans to Migrate to 12c as of now.. Can you walk me through the steps to achieve this. Thank you

Neelima Bawa said...

To get notifications for WLS health via MBeans, you need to define a watch rule on Weblogic.
1. For a server, find the server runtime mbean for that server.
2. Retrieve the attribute HealthState
3. Retrieve that attribute SubSystemHealthStates, which returns an array of health states
4. Iterate through the HealthState and the SubSystemHealthStates, looking for the most severe state. That’s the state that the admin console displays as the health state for a server.

In addition, you need to also configure notification.

Anonymous said...

This is what i am looking for.As you said i want to basically monitor the server health state and the subsystem health state and also monitor my JDBC/JMS health state as well .Currently i use WLST python script to achieve it .But do you have any doc for configuring these monitoring matix in emgc so that i can see t all these critical/warning in my EMGC dasboard.BTW where should i create a watch rule and how can i create it.

Neelima Bawa said...

For monitoring JDBC and JMS health status, there are few metrics under OEM for WLS targets. You can configure and monitor them. For creating watch rules, you need to access it via weblogic console. For more info., pls refer

dbachaplgs said...

Hi Neelima,

I have question regarding 12C EM for AIA PIP's,is it possible to monitor AIA PIP's using EM and if PIP's are down need to get alert notifications.?, this is achievable using 12C EM.

Neelima Bawa said...

What are specific components of AIA that you are interested in?

Unknown said...

SOA Composites i mean to say

Unknown said...

SOA Composites i mean to say

Anonymous said...

A very nice and neat summary.

Thank you!