Skip to main content

Receive ONTAP system health alerts automatically

Contributors netapp-aaron-holt netapp-aherbin netapp-dbagwell netapp-thomi

You can manually view system health alerts by using the system health alert show command. However, you should subscribe to specific Event Management System (EMS) messages to automatically receive notifications when a health monitor generates an alert.

About this task

The following procedure shows you how to set up notifications for all hm.alert.raised messages and all hm.alert.cleared messages.

All hm.alert.raised messages and all hm.alert.cleared messages include an SNMP trap. The names of the SNMP traps are HealthMonitorAlertRaised and HealthMonitorAlertCleared.

Learn more about system health alert show in the ONTAP command reference.

Steps
  1. Use the event destination create command to define the destination to which you want to send the EMS messages.

    cluster1::> event destination create -name health_alerts -mail admin@example.com

    Learn more about event destination create in the ONTAP command reference.

  2. Use the event route add-destinations command to route the hm.alert.raised message and the hm.alert.cleared message to a destination.

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

    Learn more about event route add-destinations in the ONTAP command reference.