Adding an SNMP Trap Task
An SNMP Trap task generates an SNMP trap.
To add an SNMP Trap task:
Open the Tasks console (see Tasks), and click the New Task button
OR
In the XpoLog Manager homepage, under More Actions, click Add Task.In the page that opens, select the SNMP Trap option, and then click Continue.
The SNMP Trap Task page opens.In Name, type the name of the new task.
In Description, type a description of the new task; optional.
In Connection Details, select the SNMP account to use, or click New to define a new SNMP account (see Creating an Account).
In SNMP Trap OID, type the OID of the SNMP trap; mandatory only for SNMP version 2 account.
In SNMP Community, type the name of the target community; optional; default is Public.
Specify the SNMP trap variables. See the Specifying SNMP Trap Variables section below.
To automate task execution, open the Schedule tab, and configure the scheduler as described in Scheduling a Task.
Click Save.
The task is saved and appears in the Tasks console in the Tasks list.
Specifying SNMP Trap Variables
You can add SNMP trap variables to the SNMP trap. You can either add a predefined SNMP, or customize a new variable of one of the following available types:
Trap Time – the time of the SNMP trap
Log Time – the time of the event
Time – the value of a date column from the event
Text – free text or the value of any column from the event. Specify the column name in square brackets.
Unsigned Integer – the value of a number column from the event
Status – the status of the event
IP Address, Integer 32, Unsigned Integer 32, Counter 32, Counter 64, Gauge 32, SMI Address, TCP Address, Time ticks, UDP Address – the value of a column from the event. Choose the type matching the data in the event, i.e. Integer 32 for a numeric value and IP Address for an IP address.
To add an SNMP trap variable:
In the SNMP Trap Task Details tab, click Add new variables .
Select the Select a predefined variable option, and in the adjact dropdown list, select the variable.
OR
Select the Create a custom variable option, and customize the following details for the new variable:
In OID, type the OID of the variable.
In Name, type the name of the variable.
In Description, type a description of the variable.
In Type, select the type of the variable.
In Message, type the message to be sent in the trap. Optionally, include in this dynamic field placeholders for data from the log. The available placeholders are determined by the variable type, as follows:
For a Trap Time variable, specify the date format in the Message column, or leave empty for default date format (MM/dd/yyyy HH:mm:ss).
For a Log Time variable, specify the date format in the Message column, or leave empty for default date format (MM/dd/yyyy HH:mm:ss).
For a Time variable, specify the column name in square brackets and add the date format after the column name (i.e: [Date;MM/dd/yyyy]) or leave empty for default date format (as configured in the log).
For a Status variable, specify the status of the event.
For other variables, specify the column name in square brackets.Click Add.
The new variable is added to the Existing Variables list.