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

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

关于此任务

以下过程向您显示了如何为所有 hm.alert.raised 消息和所有 hm.alert.cleared 消息设置通知。

所有 hm.alert.raised 消息和所有 hm.alert.cleared 消息都包括 SNMP 陷阱。SNMP 陷阱的名称为 HealthMonitorAlertRaisedHealthMonitorAlertCleared。有关 SNMP 陷阱的信息,请参见《集群模式 Data ONTAP 网络管理指南》

步骤

  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