跳到主要内容

自动接收系统运行状况警报

您可使用 system health alert show 命令手动查看系统运行状况警报。但是,您应订阅特定的事件管理系统(EMS)消息,以便在运行状况监控器生成警报时自动接收通知。

关于本任务

以下过程说明如何为所有 hm.alert.raised 消息和所有 hm.alert.cleared 消息设置通知。

所有 hm.alert.raised 消息以及所有 hm.alert.cleared 消息包含 SNMP 警报。SNMP 警报的名称为 HealthMonitorAlertRaisedHealthMonitorAlertCleared。有关 SNMP 警报的信息,请参阅《网络管理指南》

  1. 使用 event destination create 命令定义想要发送 EMS 消息的目标。

    示例

    cluster1::> event destination create -name health_alerts -mail admin@example.com
  2. 使用 event route add-destinations 命令可路由 hm.alert.raised 消息和 hm.alert.cleared 消息至目标。

    示例

    cluster1::> event route add-destinations -messagename hm.alert* -destinations health_alerts