Saturday, December 29, 2007

Oracle EM Grid Control – Notification Rules

Notification Rules are the way of Enterprise Manager warns you. You may want to be warned about “tablespace space usage percentage”, “data block corruption alert log entries” or anything else that you think it is critical for you. You can create a rule from scratch or you can also use Public Rules. Public Rules are also customizable for your needs. Here, I will create a rule from scratch for an example. Extenting and customizing a Public Rule has no differences in logical manner.


- In “Preferences” Page, click to “My Rules” under “Notification” Tab. “My Notification Rules” page will appear.
- Click “Create” button to create a rule (figure_1)


- There are six tabs on the screen. First one is “General”, here you should enter the “Name” of the rule, and the “Target Type” you want to apply the rule (in this example the Target Type is Database Instance).

- You can also identify which targets you want to apply the rule you created. To do this you should select one of the two choices. You can apply the rule to all of the database instances or you can apply the rule to only one instance (figure_2)


- If you select to apply the rule to a specific database instance click the second radio button. A new list appears. This is the list of the database instances that your rule will apply.

- Click “Add” Button to add database instances (figure_3)


- Target selector appears when you click to the “Add” button. Here you can select which target(s) you want to apply your rule. Select “Target Type” and Targets you want to apply the rule and click “Select” button to make your choice permanent.

- After you complete with this tab click to the next tab “Availability” (figure_4)


- You can set the availability of the agent states and you can be notified by the state changes. You can set “agent unreachable” , “metric error” and “blackout” states and their cleared problems to notify you (figure_5)


- “Metrics” tab is probably the most handy tab here. By this tab you can add more than a hundred metric to watch an instance. We will add “Generic Alert Log Error” metric in this example. By using this metric, one would never need to write a script to search alert.log for errors and send email instead this metric does the same thing four you.
- Click “Add” button to add a metric (figure_6)


- You can find the metrics by clicking “next” link for every 10 records until you find the “Generic Alert Log Error”
- After selecting the specified metric go to the bottom of the page (figure_7)


- You will find “Severity States” section here. Select any state you want to be within this metric. In this example I will select both “Critical” and “Warning” levels.
- You may want to be informed when the problem is cleared. Look “Corrective Action States” section to select which corrective actions should inform you.
- After your selections are complete Click “Continue” Button (figure_8)


- You will see the added Metric in the “Metrics” Tab.
- Click “OK” button to complete the rule creation.


- If the rule is created successfully you should see a rule in the “My Rules” Tab.
- If you want to be informed with this rule select the “Subscribe (Send Email)” column and click “Apply” button.

No comments:

Post a Comment