Setting Up a Rule to Send Different Notifications for Different Severity States of an Event
Before you perform this task, ensure the DBA has set appropriate thresholds for the metric so that a critical metric alert is generated as expected.
Consider the following example:
The Administration Manager sets up a rule to page the specific DBA when a critical metric alert event occurs for a database in a production database group and to email the DBA when a warning metric alert event occurs for the same targets. This task occurs when a new group of databases is deployed and DBAs request to create appropriate rules to manage such databases.
Perform the following tasks to set appropriate thresholds:
-
From the Setup menu, select Incidents, then select Incident Rules.
-
On the Incident Rules - All Enterprise Rules page, highlight a rule set and click Edit.... (Rules are created in the context of a rule set. If there is no existing rule set to manage the newly added target, create a rule set.)
-
In the Edit Rule Set page, locate the Rules section. Click Create...
-
From the Select Type of Rule to Create dialog, choose Incoming events and updates to events. Click Continue.
-
Provide the rule details as follows:
-
For Type, select Metric Alerts as the Type.
-
In the criteria section, select Severity. From the drop-down list, check and Critical and Warning as the selected values. Click Next.
-
On the Add Actions page, click +Add.
In the Create Incident section, check the Create Incident option. Click Continue. The Add Action page displays with the new rule. Click Next.
-
Specify a name for the rule and a description. Click Next.
-
On the Review page, ensure your settings are correct and click Continue. A message appears informing you that the rule has been successfully created. Click OK to dismiss the message.
Next, you need to create a rule to perform the notification actions.
-
-
From the Rules section on the Edit Rules page, click Create.
-
Select Newly created incidents or updates to incidents as the rule type and click Continue.
-
Check Specific Incidents.
-
Check Severity and from the drop-down option selector, check Critical and Warning. Click Next.
-
On the Add Actions page, click Add. The Conditional Actions page displays.
-
In the Conditions for actions section, choose Only execute the actions if specified conditions match.
-
From the Incident matches the following criteria list, choose Severity and then Critical from the drop-down option selector.
-
In the Notifications section, enter the DBA in the Page field. Click Continue. The Add Actions page displays.
-
Click Add to create a new action for the Warning severity.
-
In the Conditions for actions section, choose Only execute the actions if specified conditions match.
-
From the Incident matches the following criteria list, choose Severity and then Warning from the drop-down option selector.
-
In the Notifications section, enter the DBA in the Email to field. Click Continue. The Add Actions page displays with the two conditional actions. Click Next.
-
Specify a rule name and description. Click Next.
-
On the Review page, ensure your rules have been defined correctly and click Continue. The Edit Rule Set page displays.
-
Click Save to save your newly defined rules.