Support Support Downloads Knowledge Base Apex Support Portal Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[Junos Space] How to receive email notifications with interface name when an interface goes down

1

0

Article ID: KB36391 KB Last Updated: 30 Dec 2020Version: 1.0
Summary:

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:

  1. 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.

  2. 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.

 

Solution:

The two events that are generated from a LinkDown trap are as follows:

  • UEI: uei.opennms.org/internal/topology/linkDown
  • UEI: uei.opennms.org/translator/traps/SNMP_Link_Down

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

  1. Go to Network Management Platform > Network Monitoring > Admin > Configure Notification > Configure Event Notifications.

  2. Click the Add New Event Notification button on the top-left window panel. A new window to "choose the event UEI" opens.

  3. 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:

  1. You can either validate rules or skip validation.
  2. The “Choose the destination path and enter the information to send via the notification” window opens.

  3. 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

  1. Click Finish.

  2. 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

 

Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search