Updated on 2024-04-15 GMT+08:00

Creating an Event Alarm Rule

You can set event conditions for services by setting event alarm rules. When the resource data meets an event condition, an event alarm is generated.

Precautions

If you want to receive email or SMS notifications when the resource data meets the event condition, set an alarm action rule by referring to Creating an Alarm Action Rule.

Procedure

  1. On the menu bar, choose Monitoring Center.
  2. In the navigation pane, choose Alarm Management > Alarm Rules.
  3. on the Alarm Rules tab page.
  4. Set basic information about the alarm rule by referring to Table 1.

    Table 1 Basic information

    Parameter

    Description

    Rule Name

    Name of a rule. Enter a maximum of 255 characters. The following special characters are not allowed: "$# %&'+;<=>?\

    Description

    Description of the rule. Enter up to 1000 characters.

  5. Set the detailed information about the alarm rule.

    1. Set Rule Type to Event alarm rule.
    2. Set Event Source, Monitored Object, and Alarm Condition.
      Table 2 Alarm rule parameters

      Parameter

      Description

      Event Source

      Name of the service for which an event alarm is reported. You can select a service from the service list.

      Monitored Object

      Select criteria to filter service events. You can select Notification Type, Event Name, Alarm Severity, Custom Attributes, Namespace, or Cluster Name as the filter criterion. One or more criteria can be selected.

      NOTE:

      Set Event Name as the filter criterion. If no event name is selected, all events are selected by default.

      Alarm Condition

      Condition for triggering event alarms. In case of multiple events, click Batch Set to set alarm conditions for these events in batches.

      • Accumulated Trigger: When the trigger condition is met for a specified number of times in a monitoring period, the alarm action rule is triggered and an event alarm of the corresponding severity is sent.
      • Immediate Trigger: An alarm is generated immediately when the trigger condition is met.

  6. Set an alarm notification policy.

    • Direct alarm reporting: An alarm is directly sent when the alarm condition is met.

      For event alarm rules, the alarm action rule is enabled by default. The system sends alarm notifications based on the associated SMN topic and message template. If the existing alarm action rules cannot meet your requirements, click Create Rule to create one. For details about how to set an alarm action rule, see Creating an Alarm Action Rule.

  7. Click Confirm. Then, click Back to Alarm Rule List to view the created alarm rule.

    To view the alarm, choose Alarm Management > Alarm List in the navigation pane. The system also sends alarm notifications to specified personnel by email or SMS.