Administer > Monitor your network > Monitor SNMP traps > What is a Trap Template?

What is a Trap Template?

Trap templates are used to format your trap messages. You can use SolarWinds macros or variables in the OID Value and ValueName attributes or call values from your MIB.

The templates are placed in the following locations:

  • /SolarWinds/Common/Orion-Detailed-Alert.trap
  • /SolarWinds/Common/Orion-Generic-Alert.trap
  • /SolarWinds/Orion/ForwardSyslog.trap

The following table describes the OIDs section of the Orion Generic Alert trap template. This is the section you modify to display the information you want in your trap messages.

Template OID line Information returned
OID OID="1.3.6.1.2.1.1.3.0" MIB="RFC1213-MIB" Name="sysUpTime.0" Value="0" DataType="67" ValueName="0" HexValue="" This line displays how long the device has been up.
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="" This line displays the enterprise associated with the trap.
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="" When the template is used in an alert, this line displays the alert message associated with the triggered alert.

Add more information by adding another OID element and incrementing the OID.