Submit a ticketCall us

Looking to compare latest NPM features with previous versions of NPM?
The NPM new feature summary offers a comparison of new features and improvements offered with this release.

 

 

 

 

Home > Success Center > Network Performance Monitor (NPM) > Forward Trap action for Alerts - Interface Name Variable issue

Forward Trap action for Alerts - Interface Name Variable issue

Table of contents
Created by Eric Bryant, last modified by Eric Bryant on Oct 19, 2016

Views: 954 Votes: 2 Revisions: 4

Updated: July 22, 2016

Overview

This article explains how the current Trap/Syslog forward action displays Net-Object names via variables in an Alert and how to configure the following files to conform to the correct new SWIS variables:

C:\Program Files (x86)\SolarWinds\Common\Orion-Detailed-Alert.trap

C:\Program Files (x86)\SolarWinds\Common\Orion-Generic-Alert.trap

C:\Program Files (x86)\SolarWinds\Orion\ForwardSyslog.trap

 

Environment

NPM  version 11.X and later

Detail

Trap contains data which are defined in the template selected in the alert action. Currently there are 3 templates which we provide out-of-box:
ForwadSyslog: C:\Program Files (x86)\SolarWinds\Orion\ForwardSyslog.trap
Orion-Detailed-Alert C:\Program Files (x86)\SolarWinds\Common\Orion-Detailed-Alert.trap
Orion-Generic-Alert C:\Program Files (x86)\SolarWinds\Common\Orion-Generic-Alert.trap

These templates may not give you the desired results for Interface names specifically for NPM 11.X and forward. It however is possible to modify them or create new custom templates.

Example:

 

  1. Make a duplicate of Orion-Detailed-Alert.trap and rename it to e.g. Orion-Modified-Alert.trap - or copy ForwardSyslog.trap if you wish and then open the new file in Notepad.
  2. Find the option starting with:

<OID OID="1.3.6.1.4.1.11307.10.2" MIB="SNMPv2-SMI" Name="enterprises.11307.10.2" Value="$ {NodeName}" DataType="4" ValueName="${NodeName}

" ...

   3. Change Value from ${NodeName} to ${Node.Caption}:

<OID OID="1.3.6.1.4.1.11307.10.2" MIB="SNMPv2-SMI" Name="enterprises.11307.10.2" Value="${Node.Caption}" DataType="4" ValueName="${Node.Caption}" ...
 

   4. The variable ${Node.Caption} as mentioned above works to pull the node name. ${NodeName} works as ${ObjectName} now so it would pull the object alerted off of. This might be Interface name for example.

In case you want to modify the varbinds values, you may do so.


However, if interface name is not populating as it should for a specific varbind, you can change to ${Interface.Caption}  instead of ${ObjectName}. However, as it is documented above if the object you are alerting off of is interface object ${ObjectName} should work as expected

${PropertyName} and ${PropertyValue} are deprecated so if you don't want to receive this text, remove related OIDs from the template.

The template could look like this:
<SNMPTrap>
<Application Name="SolarWinds SNMP Trap Engine" Version="1.0.16" Copyright="Copyright 1995-2003 SolarWinds.Net All rigths reserved." ReleaseDate="October 2003" TimeStamp="06-Apr-04 11:51 AM">
</Application>
<Trap SourceHostname="" SourceIPAddress="" DestinationHostname="" DestinationIPAddress="" CommunityString="" DateTime="12:00:00 AM 12:00 AM">
<OIDs>
<OID OID="1.3.6.1.2.1.1.3.0" MIB="RFC1213-MIB" Name="sysUpTime.0" Value="0" DataType="65" ValueName="0" HexValue=""></OID>
<OID OID="1.3.6.1.6.3.1.1.4.1.0" MIB="SNMPv2-MIB" Name="snmpTrapOID.0" Value="1.3.6.1.4.1.11307.10" DataType="6" ValueName="enterprises.11307.10" HexValue=""></OID>
<OID OID="1.3.6.1.6.3.1.1.4.3.0" MIB="SNMPv2-MIB" Name="snmpTrapEnterprise.0" Value="1.3.6.1.4.1.11307" DataType="6" ValueName="enterprises.11307" HexValue=""></OID>
<OID OID="1.3.6.1.4.1.11307.10.2" MIB="SNMPv2-SMI" Name="enterprises.11307.10.2" Value="${Node.Caption}

" DataType="4" ValueName="$

{Node.Caption}

" HexValue=""></OID>
<OID OID="1.3.6.1.4.1.11307.10.3" MIB="SNMPv2-SMI" Name="enterprises.11307.10.3" Value="$

{Node.IP_Address}" DataType="64" ValueName="${Node.IP_Address}

" HexValue=""></OID>
<OID OID="1.3.6.1.4.1.11307.10.4" MIB="SNMPv2-SMI" Name="enterprises.11307.10.4" Value="$

{Node.NodeID}" DataType="4" ValueName="${Node.NodeID}

" HexValue=""></OID>
<OID OID="1.3.6.1.4.1.11307.10.5" MIB="SNMPv2-SMI" Name="enterprises.11307.10.5" Value="$

{ObjectName}" DataType="4" ValueName="${Interface.Caption}

" HexValue=""></OID>
<OID OID="1.3.6.1.4.1.11307.10.6" MIB="SNMPv2-SMI" Name="enterprises.11307.10.6" Value="$

{ObjectType}" DataType="4" ValueName="${ObjectType}

" HexValue=""></OID>
<OID OID="1.3.6.1.4.1.11307.10.7" MIB="SNMPv2-SMI" Name="enterprises.11307.10.7" Value="$

{NetObjectID}" DataType="4" ValueName="${NetObjectID}

" HexValue=""></OID>
<OID OID="1.3.6.1.4.1.11307.10.1" MIB="SNMPv2-SMI" Name="enterprises.11307.10.1" Value="$

{AlertMessage}" DataType="4" ValueName="${AlertMessage}

" HexValue=""></OID>
</OIDs>
</Trap>
</SNMPTrap>

 

More on Alert Actions click here.

 

 

 

Last modified
12:23, 19 Oct 2016

Tags

Classifications

Public