Alarms and Notifications
ZSphere supports alarms for resource utilization, capacity usage, and predefined platform events. When core resources become abnormal, the platform can push alarm messages to specified endpoints so that administrators can identify and handle issues in time.
Alarm Service Infrastructure
- Monitoring System
- Provides time-series monitoring and alarms for resource utilization and capacity usage, collects predefined platform events and triggers event alarms, and supports custom alarms and alarm message templates.
- Notification Service
- Pushes alarm messages to system endpoints, email, DingTalk, Lark, WeCom, HTTP applications, Microsoft Teams, SNMP Trap receivers, and other endpoints.
Configuration Path
- Prepare management node resources and notification channels required by the Alarm Service.
- Create endpoints to receive alarm messages.
- Create or adjust message templates to standardize alarm message formats.
- Create resource alarms or event alarms and bind endpoints.
- View, acknowledge, silence, or restore alarm messages.
Prepare the Alarm Service
The Alarm Service depends on monitoring data collection, storage, and notification channels. Before enabling a large number of monitoring and alarm configurations, plan management node resources and alarm message delivery channels in advance.
Resource Planning Recommendations
- Plan a dedicated physical server as the management node for the platform.
- Because monitoring data may periodically consume system disk I/O resources, use an SSD as the system disk of the management node.
- To avoid high system disk utilization caused by large amounts of monitoring data, plan more than 1 TB of system disk space.
- If the system disk space is less than 500 GB, shorten the monitoring data retention period and set an appropriate monitoring data retention size in system parameters.
Notification Channel Preparation
Before creating alarms, prepare external message receivers based on the required notification method, such as email servers, group chat robots, HTTP applications, SMS services, Microsoft Teams, or SNMP Trap receivers.
Create an Email Endpoint
Before you begin
An email server has been added. For more information, see Add an Email Server.
Procedure
What to do next
Create a DingTalk Endpoint
Before you begin
- An Advanced license has been installed and is valid.
- A DingTalk group bot has been added and its webhook URL has been obtained.
Procedure
Create a Lark Endpoint
Before you begin
- An Advanced license has been installed and is valid.
- A Lark group bot has been added and its webhook URL has been obtained.
Procedure
Create a WeCom Endpoint
Before you begin
- An Advanced license has been installed and is valid.
- A WeCom group bot has been added and its webhook URL has been obtained.
Procedure
Create an SMS Endpoint
Before you begin
Procedure
Create an HTTP Application Endpoint
Before you begin
Procedure
Create a Microsoft Teams Endpoint
Before you begin
- An Advanced license has been installed and is valid.
- The Incoming Webhook app has been added in Microsoft Teams and its webhook URL has been obtained.
Procedure
Create an SNMP Trap Receiver Endpoint
Before you begin
- An Advanced license has been installed and is valid.
- SNMP Management has been enabled and an SNMP Trap receiver has been added.
Procedure
Manage Endpoints
About this task
After creating an endpoint, you can modify the endpoint, control its enabled state, adjust associated alarms, or delete the endpoint as needed.
Procedure
Create a Message Template
A message template defines the text format used when an alarm pushes alarm messages to endpoints.
Before you begin
Procedure
Manage Message Templates
About this task
After creating a message template, you can modify its basic information, set or unset the default template, or delete the template as needed.
Procedure
Alarm Rules
Resource Alarm Rules
| Option | Description | Example |
|---|---|---|
| Resource Type | The resource type monitored by the alarm. | VM |
| Metric Item | The monitoring metric type and name. | CPU Utilization |
| Resource | The resource object monitored by the alarm. | / |
| Operator | The comparison relationship between the detected metric value and the threshold, including >, ≥, <, and ≤. | > |
| Threshold | The threshold and unit for triggering the alarm. | 85% |
| Duration | Sends an alarm message after the alarm is continuously triggered for the specified time. Valid values include 30 seconds, 1 minute, 5 minutes, 10 minutes, 30 minutes, 1 hour, and custom. | 5 minutes |
| Alarm Interval | The interval for repeated notifications after an alarm is generated, including Only Once, Every 1 Hour, and custom. | Every 1 Hour |
| Severity | The alarm message level, including Emergent, Major, and Minor. | Major |
| Recovery Notification | Sends one recovery notification when the monitored resource recovers from the alarm state to normal state. | / |
Event Alarm Rules
| Option | Description | Example |
|---|---|---|
| Resource Type | The resource type monitored by the alarm. | Data Storage |
| Metric Item | The monitoring metric name. | Data Storage Disconnected |
| Severity | The alarm message level, including Emergent, Major, and Minor. | Emergent |
Create a Resource Alarm
Resource alarms monitor time-series data of resources in the platform.
Before you begin
- You can use system parameters to control default alarm behavior.
- For alarm items that use VM Advanced Monitoring data, make sure the Advanced Monitoring Agent included in VMTools is installed and running in the VM.
Procedure
Create an Event Alarm
Event alarms monitor predefined events in the platform.
Procedure
Manage Alarms
About this task
After creating an alarm, you can modify, enable, disable, adjust endpoints, or delete the alarm as needed.
Procedure
View Alarm Messages
About this task
Triggered alarm messages can be viewed on the unified Alarm Message page, on specific resource details pages, and in the bottom task and alarm pane. The Alarm Message page displays overall platform alarm information in a dashboard view, making it easier to compare alarms across different dimensions.
Procedure
Acknowledge Alarm Messages
Acknowledging an alarm message indicates that the administrator has noticed the alarm.
Procedure
Set a Silence Period
A silence period temporarily pauses the push of a specific alarm message.
Procedure
- In the navigation pane, choose .
- In the Triggered Alarms or All Alarms list, select an alarm message and click .
- In the Set Silence Period dialog, choose a silence period.
Restore Alarm Messages
After you manually restore an alarm message, alarm messages in a silence period can continue to be pushed.
Procedure
- In the navigation pane, choose .
- In the Triggered Alarms or All Alarms list, select an alarm message and click .
