MRS uses SMN to offer a publish/subscribe model to achieve one-to-multiple message subscriptions and notifications in a variety of message types (SMSs and emails).
On the MRS management console, you can enable or disable the notification service on the Alarms page. The functions in the following scenarios can be implemented only after the required cluster function is enabled:
A topic is a specified event for message publication and notification subscription. It serves as a message sending channel, where publishers and subscribers can interact with each other.
The SMN page is displayed.
The Topics page is displayed.
The Create Topic dialog box is displayed.
To deliver messages published to a topic to subscribers, you must add subscription endpoints to the topic. SMN automatically sends a confirmation message to the subscription endpoint. The confirmation message is valid only within 48 hours. The subscribers must confirm the subscription within 48 hours so that they can receive notification messages. Otherwise, the confirmation message becomes invalid, and you need to send it again.
The SMN page is displayed.
The Topics page is displayed.
The Add Subscription box is displayed.
Protocol can be set to SMS, FunctionGraph (function), HTTP, HTTPS, and Email.
Endpoint indicates the address of the subscription endpoint. SMS and email, endpoints can be entered in batches. When adding endpoints in batches, each endpoint address occupies a line. You can enter a maximum of 10 endpoints.
The subscription you added is displayed in the subscription list.
Parameter | Description |
|---|---|
Rule Name | User-defined notification rule name. Only digits, letters, hyphens (-), and underscores (_) are allowed. |
Message Notification |
|
Topic Name | Select an existing topic or click Create Topic to create a topic. |
Notification Type | Select the type of the notification to be subscribed to.
|
Subscription Items | Select the items to be subscribed to. You can select all or some items as required. Subscription rules in MRS 3.x or later: Alarm severity: critical, major, minor, and suggestion Event: major, minor, and warning Subscription rules in versions earlier than MRS 3.x:
|