Monday, October 20, 2008

Setting EMAIL Notification for WebLogic metric alert

In my last blog entry, I outlined the steps for creating a metric alert for WebLogic Server. In this entry, I will outline steps required to create a notification such as email.

Setting Up Notification Methods

You have to first setup notification methods. For example, you want to get an EMAIL when an event occurs.

Click on Setup option at then top and then select the Notifications Method on the left and you will get the following page:

Enter the SMTP server and other properties required in your environment and click Apply. If you want to make sure that you have entered the correct properties click on Test Mail Server and you should get a test email from Enterprise manager.

Setup EMAIL Preferences for Admin User

Click on Preferences on the top and enter the email address assigned for the admin account as shown below. You have more than one email address for an admin user.

Setting the Notification Rules

You have to set notification rules when you want to get notified.

1. Click on Rules on the left and you will get the screen with all notification rules.

2. We want to create a new notification rule for the alerts on WebLogic server. Click on create button and enter as details.

Change the target type to WebLogic Managed server and add the managed targets if you want the rule for specific WebLogic Server instances as follows:

3. Click on Availability Tab and select the options when you want to be notified e.g. when Server goes down.

4. Click on Metrics Tab and click on add metrics and select the metrics you are interested in.

Make sure to select the severity Critical/Warning/Clear when you want to be notified.

5. After you confirm the metrics you will see the list of metrics that you have selected for notification as follows:

6. Optionally you can select a policy violation for notification.

Once you confirm the notification rule, it will be created!

7. If an alert occurs you will get an email as follows:

Enterprise manager also allows to setup notification schedule and blackouts! It also allows you send SNMP traps or allow you to integrate ticketing system such as Remedy or Siebel Helpdesk for sending notifications.

Hope this helps!

Setup metric alert for WebLogic Server from Enterprise Manager

It was great to meet you some of you during my OOW presentations.

Some of you wanted to setup metric alerts for a specific WebLogic Server metric and want to be alerted when a metric threshold is reached. For example you are using JRockit as your JVM and you want to be alerted when the physical memory usage reaches a specific level e.g. 800MB. Similarly, you want to be alerted when the invocation time for any Servlets/JSPs is higher than your expectation level.

In order to setup a metric alert you have follow these steps:

1.Navigate to the Home Page of your WebLogic Server

2. Click Metric and Policy Settings on the WebLogic Server Home Page and you will get the follow screen. This will display the page that will show any existing policy settings

3. Change the View to All Metrics and you will get a page as follows:

4. You can change the warning and critical thresholds of metrics that you want to monitor as follows and click ok ands you will get a confirmation that update was successful.

You will get alerts as shown in the following home page (under metric alert) when such an event occurs:

5. You can drill down a particular event by clicking on the alert text and you can see the details of the metric alert as follows:

You can acknowledge and clear the event or add a comment from this page.

In my next blog entry, I will discuss how to setup a notification for the metric alerts.