This article details the steps to perform to receive email notifications with interface detail when an interface goes down on an end device by using the Networking Monitoring > Notification Feature.
For more information about configuring email notifications for any events in the Network Monitoring Workspace, see KB27090 - [Junos Space] How to configure e-mail notifications for events in the Network Monitoring Workspace.
There are two ways in which Network Monitoring is made aware of an interface going down on a monitored device:
-
When an interface on a device goes down, the device will generate a trap. If the device continues to have connectivity to Junos Space, the trap will be received and processed.
-
Network Monitoring has connectivity to the interface in question, and is continually probing this interface to confirm if it is up.
This article only describes the email notifications from received traps.
The two events that are generated from a LinkDown trap are as follows:

Of the two events, the SNMP_Link_Down Trap UEI will have information about the specific interface that has gone down. Therefore, we need to configure a notification for “UEI: uei.opennms.org/translator/traps/SNMP_Link_Down” in order to gather the interface name from the event while sending out a notification.
Steps
-
Go to Network Management Platform > Network Monitoring > Admin > Configure Notification > Configure Event Notifications.
-
Click the Add New Event Notification button on the top-left window panel. A new window to "choose the event UEI" opens.
-
Select the “uei.opennms.org/translator/traps/SNMP_Link_Down” (UEI) for which you want the notification to be enabled (as shown below), and click Next:

- You can either validate rules or skip validation.
-
The “Choose the destination path and enter the information to send via the notification” window opens.
-
Edit the Text Message and Email subject field as shown below to receive the interface name in the notification.
Where the parameter "parm[ifName]
" fetches the interface name from the event.
Text Message
Interface %parm[ifName]% has gone down on node %nodelabel%.
Date and Time: %time%
Severity: %severity%
UEI: %uei%
Event ID: %eventid%
Interface name: %parm[ifName]%
Email Subject
Notice #%noticeid% - %parm[ifName]% Interface Down | Time: %time% | Node Name: %nodelabel%
Example

-
Click Finish.
-
Now whenever an interface goes down, you should receive an email notification as shown in the below image.
Example of an Email Notification received
Subject: Notice #32 - xe-0/0/0 Interface Down | Time: Friday, December 18, 2020 5:40:54 AM UTC | Node Name: jtac-srx4100-r2002
Interface xe-0/0/0 has gone down on node jtac-srx4100-r2002
Date and Time: Friday, December 18, 2020 5:40:54 AM UTC
Severity: Minor
UEI: uei.opennms.org/translator/traps/SNMP_Link_Down
Event ID: 312480
Interface name: xe-0/0/0