Event notifications not generated due to SMTP server being unreachable
Applies to
- ONTAP 9
- SMTP server
Issue
- Event filters are configured for email notifications as per this KB article: How to configure event filter and event notification for email destination
::> event notification show
ID Filter Name Destinations
---- ------------------------------ -----------------
1 default-trap-events snmp-traphost
2 Events_filter Email_Notification
3 Events_filter Syslog
3 entries were displayed.
- No events are triggered when it is attempted to generate test events for email notification:
::> set diag
::*> event generate -node Node-01 -message-name monitor.volume.nearlyFull -values TEST,TEST,TEST,TEST,TEST,TEST
::*> event notification history show -destination Email_Notification
There are no entries matching your query.
- However, events are triggered on Syslog server for the same filter:
::*> event notification history show -destination Syslog
Time Node Severity Event
------------------- ---------------- ------------- ---------------------------
11/20/2023 06:32:52 Node-01 ERROR monitor.volume.nearlyFull: TEST TESTTESTTEST is nearly full (using or reserving TEST% of space and TEST% of inodes).
- The SMTP hostname is mentioned in the event configuration:
::*> event config show
Mail From: admin@localhost
Mail Server: smtp.server.com
Proxy URL: -
Proxy User: -
Publish/Subscribe Messaging Enabled: true
- An attempt to ping the SMTP server fails with the below error:
::*> network ping -node Node-01 -destination smtp.server.com
Unknown host smtp.server.com