Submit a ticketCall us
Home > Success Center > Network Configuration Manager (NCM) > NCM Documentation > NCM 7.8 Administrator Guide > Monitoring SNMP traps > What is a Trap Template?

What is a Trap Template?

Table of contents
No headers
Created by Caroline Juszczak, last modified by Anthony.Rinaldi_ret on Jan 26, 2017

Views: 490 Votes: 0 Revisions: 6

This Orion Platform topic applies to the highlighted products:

DPAIMEOCETSIPAMLMNCMNPMNTASAMSRMUDTVMANVNQMWPM

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.

 

Last modified

Tags

Classifications

Public