Updated on 2024-06-28 GMT+08:00

Creating an Alarm Action Rule

You can create an alarm action rule and associate it with an SMN topic and a message template. If the log, resource or metric data meets the alarm condition, the system sends an alarm notification based on the associated SMN topic and message template.

Prerequisites

Precautions

You can create a maximum of 1000 alarm action rules. If this number has been reached, delete unnecessary rules.

Procedure

  1. Log in to the AOM 2.0 console.
  2. In the navigation pane, choose Alarm Management > Alarm Action Rules.
  3. On the Action Rules tab page, click Create.
  4. Set parameters such as Rule Name and Action Type by referring to Table 1.

    Figure 1 Creating an alarm action rule
    Table 1 Parameters of an alarm action rule

    Parameter

    Description

    Rule Name

    Name of an action rule. Enter up to 100 characters and do not start or end with an underscore (_) or hyphen (-). Only digits, letters, hyphens, and underscores are allowed.

    Enterprise Project

    Enterprise project.

    • If you have selected All for Enterprise Project on the global settings page, select one from the drop-down list here.
    • If you have already selected an enterprise project on the global settings page, this option will be dimmed and cannot be changed.

    Description

    Description of the action rule. Enter up to 1024 characters.

    Action Type

    Type of the action. Select one from the drop-down list.

    • Metric/Event

      If a metric or event meets the alarm condition, the system sends an alarm notification based on the associated SMN topic and message template.

    • Log

      If the log data meets the alarm condition, the system sends an alarm notification based on the associated SMN topic and message template.

    Action

    Type of action that is associated with the SMN topic and message template. Select one from the drop-down list. Currently, only Notification is supported.

    Topic

    SMN topic. Select your desired topic from the drop-down list.

    If there is no topic you want to select, create one on the SMN console.

    Message Template

    Notification message template. Select your desired template from the drop-down list.

    If there is no message template you want to select, create one by referring to Creating a Message Template.

  1. Click OK.

More Operations

After an alarm action rule is created, you can perform operations described in Table 2.

Table 2 Related operations

Operation

Description

Modifying an alarm action rule

Click Modify in the Operation column.

Deleting an alarm action rule

  • To delete a single rule, click Delete in the Operation column in the row that contains the rule, and then click Yes on the displayed page.
  • To delete one or more rules, select them, click Delete above the rule list, and then click Yes on the displayed page.
    NOTE:

    Before deleting an alarm action rule, you need to delete the alarm rule or grouping rule bound to the action rule.

Searching for an alarm action rule

Enter a rule name in the search box in the upper right corner and click .