SevOne logo
You must be logged into the NMS to search.

Table of Contents (Start)

Trap Event Editor

The Trap Event Editor enables you to configure how to handle traps. Traps that you associate to a trap event can appear on the Logged Traps page and traps without a trap event appear on the Unknown Traps page. SevOne NMS provides starter set trap events.

To access the Trap Event Editor from the navigation bar, click the Events menu, select Configuration, and then select Trap Event Editor.

Typical access to the Trap Event Editor is from the Unknown Traps page that provides a Configure Trap Event button. The SNMP OID Browser also provides access when you select an applicable OID and click Configure Trap Event.

images/download/attachments/143474941/trapeventeditor-version-1-modificationdate-1683063292372-api-v2.png

Filter

Filters enable you to limit the trap events that appear in the list. All filters are optional and cumulative.

Flags

Select each check box to display traps that are flagged to be emailed, grouped, contain variable bindings, clear trap, and/or Webhooks. The following check boxes are available.

  • Emailed

  • Grouping Options

  • Variable Bindings

  • Clear Trap

  • Webhooks

Buttons

  • Click Apply Filter button to apply the filter settings and display the trap events that meet the filter criteria.

  • Click Clear Filter button to remove all filters and to display all trap events in the list.

  • Click on

    images/download/attachments/143474941/collapse-version-1-modificationdate-1683063292439-api-v2.png

    to collapse or

    images/download/attachments/143474941/uncollapse-version-1-modificationdate-1683063292435-api-v2.png

    to uncollapse the Filter section.

Events

Add / Edit Trap Event

Click images/download/attachments/143474941/addTrapEventIcon-version-1-modificationdate-1683063292417-api-v2.png to create a new trap event. To modify an existing trap event, select a trap event and click images/download/attachments/143474941/wrench-version-1-modificationdate-1683063292403-api-v2.png under Actions column. Or, from Events > Archives > Unknown Traps, select an unknown trap and click Configure Trap Event to display the Add/Edit Trap Event pop-up.

Tab 'General'

The General tab enables you to define the basic trap event settings.

images/download/attachments/143474941/addTrapEvent-version-1-modificationdate-1683063292399-api-v2.png

  1. Select the Enabled check box to enable the trap event. Leave clear to not apply the trap event and to display applicable traps on the Unknown Traps page.

  2. Under section General, you can apply the trap event to device groups/device types, or devices.

    1. In field Description, enter description for the trap event.

    2. Click the Device Groups drop-down and select the check box for each device group/device type to trigger the trap event.

    3. Click the Devices drop-down and select the devices to trigger the trap event.

  3. Under section Unique OIDs, you can designate unique OIDs to associate to the trap event.

    1. Click images/download/attachments/143474941/trapEventEditorAddIcon-version-1-modificationdate-1683063292390-api-v2.png to add a row to the table and to add an OID.

      • Click the OID images/download/attachments/143474941/browse2-version-1-modificationdate-1683063292443-api-v2.png to display the SNMP OID Browser where you select the OID.

      • Click Update to save the OID with the trap event.

  4. Under section Actions,

    1. Select the Log check box to display traps on the Logged Traps page. Leave clear to have traps not appear on the Logged Traps page. For an enabled trap event, when you leave this check box clear, traps that meet the trap event criteria do not appear on either the Unknown Traps page or the Logged Traps page.

      Examples
      • For devices that send traps when traffic is denied through a firewall rule, a logged trap enables you to trace the events to a firewall to determine the cause of missed traffic.

      • Frequent but irrelevant traps such as when devices send traps each time a new IP address is leased via DHCP may not be useful.

    2. Select the Alert check box to have the trap trigger an alert.

      • Click the drop-down and select the alert severity to display for the alert. For example, Emergency, Alert, Critical, Error, Warning, Notice, Info, or Debug.

    3. Select the Email check box to enable the following fields.

      • Select the Mail Once check box to send one email when the trap triggers the first occurrence of the trap event. All subsequent occurrences are not emailed.

      • Click the Users drop-down and select the users to receive an email when the trap event triggers.

      • Click the Roles drop-down and select the user roles to receive an email when the trap event triggers.

      • In the Email Addresses field, click images/download/attachments/143474941/trapEventEditorAddIcon-version-1-modificationdate-1683063292390-api-v2.png to enter the email addresses where an email is to be sent when the trap event triggers.

    4. Click Save As New or Save to save. Click Cancel to cancel the add / edit of the trap event.

Tabs 'Trigger' & 'Clear'

The Trigger / Clear tabs enable you to define the conditions to trigger / clear the trap event and to define the trigger / clear messages respectively.

Trigger / Clear Trap Event

images/download/attachments/143474941/triggerTrapEvent-version-1-modificationdate-1683063292362-api-v2.png

images/download/attachments/143474941/clearTrapEvent-version-1-modificationdate-1683063292342-api-v2.png

Under section Match, you can apply the trap event to a specific OID. A match is a logical AND option. The trap primary OID must come from the device group/device type or the device you specify to trigger the trap event. To make the trap event applicable for all device groups/device types and devices do not define Match options.

  1. The Trigger OID / Clear OID images/download/attachments/143474941/browse2-version-1-modificationdate-1683063292443-api-v2.png provides access to the SNMP OID Browser where you select the target OID for the trap event. When you edit a trap event or you access the Trap Event Editor from the Unknown Traps page, this field displays the name of the OID you select. You can enter the OID name in this field if you know the OID name.

  2. The Trigger Message / Clear Message field allows you to enter the message to display when this trap event is triggered. For example, Trap received from $dev: $oid -- Bindings: $var -- The number of broadcast packets received in a second from a port is higher than the broadcast threshold.

    1. $dev - to display the source device of the trap (in textual format).

    2. $oid - to display the trigger OID (in textual format).

    3. $oidnum - to display the trigger OID (in numerical format).

    4. $var - to display the Varbinds and respective values (in textual format).

    5. $varnum - to display the Varbinds and respective values (in numerical format).

      When specifying variable OIDs (varbinds), it is helpful to review Unknown Traps. From there you can search for and identify any previous traps that have been received and the variables (varbinds) that were received with the trap.

  3. Under section Variable Conditions, you can define the conditions for which a trap event is applicable.

    1. Click images/download/attachments/143474941/trapEventEditorAddIcon-version-1-modificationdate-1683063292390-api-v2.png to add a row to the table and to define a new variable condition.

      • Click the OID images/download/attachments/143474941/browse2-version-1-modificationdate-1683063292443-api-v2.png to display the SNMP OID Browser where you select the trap target OID.

      • Click the Op drop-down and select a comparison operator.

      • In the Value field, enter the value that must be met to trigger the trap event.

      • Click Update to save the variable condition.

        Repeat to add additional variable conditions. All variable conditions for a trap event are AND'd together.

  4. Under section Webhooks,

    Applies to tab 'Trigger' only

    Select Override Cluster Setting check box to override the setting in Administration > Cluster Manager > tab Cluster Settings > Alerts subtab > field One Webhook per Alert.

    • Only send on first trigger check box is available only when Override Cluster Setting check box is selected. This allows you to override the setting configured cluster-wide. New setting is applied to the selected trap event only. When this check box is selected, it will send webhook only on the first trigger of an alert. However, when unchecked, it will send a webhook for every occurrence of an alert even if an alert already exists for that triggered trap event.

    For traps, you may set field Update Interval from Administration > Cluster Manager > tab Cluster Settings > Trap Collector subtab. By default, Update Interval is set to 300 seconds (i.e., 5 minutes).

    In SevOne-trapd, trap triggering list is loaded every 5 minutes based on the default value set in field Update Interval. When an alert is acknowledged from Events > Alerts, it does not pass through SevOne-trapd; it is now in trap triggering list's cache. If the same alert triggers again within 5 minutes after being manually acknowledged and, Only send on first trigger is enabled, trapd assumes that it is an incremented occurrence and ignores sending the webhook.

    The lower the setting of Administration > Cluster Manager > tab Cluster Settings > Trap Collector subtab > field Update Interval, the lower the likelihood of webhook failing / missed. The setting of field Update Interval can affect trap webhooks.

    1. Click Webhook Definitions drop-down and choose one or more webhook definition ids from the list. If no webhook definition ids are available or you want to create additional webhook definition ids, click images/download/attachments/143474941/webhookIcon-version-1-modificationdate-1683063292366-api-v2.png icon.

    2. Test Webhook button provides the testing ability for the webhook definition(s) applied to the trap event. You will get a pop-up with the result for the user, including the following details. The notifications can be sent to SevOne NMS application itself.

      • Webhook Definition ID - returns the webhook definition id.

      • Webhook Definition Name - returns the webhook definition name.

      • Ping Result - r eturns the value of ping test fail or success. If success, it proceeds further.

      • Status Code - s tatus code of the webhook request.

      • Response - when a webhook request is executed, it returns a response body.

      • Response Error - if webhook request fails to execute, it returns a response error.

      • Response Header - c ontains all response header values when webhook request has completed.

      • Curl Request - c url request has a curl command for every successful request.

      Click Close to exit.

Delete Selected

Select one or more trap events in the list and click images/download/attachments/143474941/deleteSelectedPolicyIcon-version-1-modificationdate-1683063292413-api-v2.png to delete the trap events selected.

Assign Webhooks

Before assigning webhook definitions to the trap events, you must first have webhook definitions configured. Please refer to section Webhook Definitions .

To understand Assign Webhooks feature, let's assume you have 7 webhook definition ids (1, 2, 3, 4, 5, 6, and 7) created. Of these 7 webhook definition ids, only 3 webhook definition ids, 4, 5, and 7 are for Type = Trap.

images/download/attachments/143474941/webhookDefinitionManager-version-1-modificationdate-1683063292320-api-v2.png

In Used In column, you will see 0 Trap Event(s) for all 3 webhook definitions where Type = Trap. This means that these webhook definitions have not been assigned to any trap event yet.

Click images/download/attachments/143474941/assignWebhooksIcon-version-1-modificationdate-1683063292386-api-v2.png to assign webhook definitions to the trap event(s) selected. Below you will find a few scenarios.

Scenario# 1

  • Select trap event id 25 and click images/download/attachments/143474941/assignWebhooksIcon-version-1-modificationdate-1683063292386-api-v2.png to assign webhook definition ids 4 and 7 to it. Webhook Definition ID 5 is not assigned to trap event id 25.

    images/download/attachments/143474941/trapEventList---1-version-1-modificationdate-1683063292369-api-v2.png
  • You will get the following pop-up with a list of 3 webhook definitions available.

    images/download/attachments/143474941/assignWebhooksTrapEvent-version-1-modificationdate-1683063292317-api-v2.png


    • The Search field allows you to search from the list of webhook definitions available in the table below.

    • Field Apply To - select Trigger or Clear check box to apply the webhook definition to Trigger or Clear conditions respectively.

    • Select Override Cluster Setting check box to override the setting in Administration > Cluster Manager > tab Cluster Settings > Alerts subtab > field One Webhook per Alert.

      • Only send on first trigger check box is available only when Override Cluster Setting check box is selected. This allows you to override the setting configured cluster-wide. New setting is applied to the selected trap events only. When this check box is selected, it will send webhook only on the first trigger of an alert. However, when unchecked, it will send a webhook for every occurrence of an alert even if an alert already exists for that triggered trap event.

  • Select webhook definition ids 4 and 7 to assign to trap event id 25.

    images/download/attachments/143474941/trapEventAssignWebhooks-version-1-modificationdate-1683063292313-api-v2.png
  • Click Save and you will get a pop-up.

    images/download/attachments/143474941/assignWebhookTrapEventPopup-version-1-modificationdate-1683063292383-api-v2.png


    • Click Ok to overwrite the webhook definitions currently assigned to trap event id 25 with webhook definition ids 4 and 7.

    • Click Review Changes to review the trap webhooks association before overwriting trap event id 25. A pop-up appears.
      images/download/attachments/143474941/assignWebhooksReviewChanges-version-1-modificationdate-1683063292310-api-v2.png

      Since this is the first time webhook definition(s) are being assigned to trap event id 25, there are no Existing Definitions for it.

      Click Done after reviewing the details. If you want to continue with the assignment of the webhook definitions to the trap event(s) selected, click Ok to save or Cancel to exit.

      If you clicked the Ok button, you will see that trap event id 25 has images/download/attachments/143474941/webhookIcon-version-1-modificationdate-1683063292366-api-v2.png icon in column 5 under Flags. This indicates that trap event id 25 now has webhook definition ids 4 and 7 assigned to it.
      images/download/attachments/143474941/trapEventList---2-version-1-modificationdate-1683063292359-api-v2.png


      To confirm this, click row with trap event id 25 > in Actions column click images/download/attachments/143474941/wrench-version-1-modificationdate-1683063292403-api-v2.png . Choose tab Trigger. You will see that webhook definition ids 4 and 7 (Trap using Slack - 4 and Trap for Watson AIOps - 7 respectively) are assigned to trap event id 25.
      images/download/attachments/143474941/trapEventWebhooksAssigned-version-1-modificationdate-1683063292307-api-v2.png

      You will see that Trap Event ID 25 has Webhook Definition IDs 4 and 7 assigned to it.

      Webhook Definition ID 5 is available but not used.

      images/download/attachments/143474941/trapEventWebhooksUnassigned-version-1-modificationdate-1683063292304-api-v2.png

      If you choose to assign Webhook Definition ID 5 to Trap Event ID 25, select Trap for Data Insight from the drop-down list and click the Save button.


Scenario# 2

  • Select trap event id 63 and click images/download/attachments/143474941/assignWebhooksIcon-version-1-modificationdate-1683063292386-api-v2.png to assign webhook definition ids 5 and 7 to it. Webhook Definition ID 4 is not assigned to trap event id 63.

    images/download/attachments/143474941/trapEventList---3-version-1-modificationdate-1683063292355-api-v2.png
  • You will get the following pop-up with a list of 3 webhook definitions available.

    images/download/attachments/143474941/assignWebhooksTrapEvent-version-1-modificationdate-1683063292317-api-v2.png


    • The Search field allows you to search from the list of webhook definitions available in the table below.

    • Field Apply To - select Trigger or Clear check box to apply the webhook definition to Trigger or Clear conditions respectively.

    • Select Override Cluster Setting check box to override the setting in Administration > Cluster Manager > tab Cluster Settings > Alerts subtab > field One Webhook per Alert.

      • Only send on first trigger check box is available only when Override Cluster Setting check box is selected. This allows you to override the setting configured cluster-wide. New setting is applied to the selected policies only. When this check box is selected, it will send webhook only on the first trigger of an alert. However, when unchecked, it will send a webhook for every occurrence of an alert even if an alert already exists for that triggered threshold.

  • Select webhook definition ids 5 and 7 to assign to trap event id 63.

    images/download/attachments/143474941/trapEventAssignWebhooks---2-version-1-modificationdate-1683063292300-api-v2.png
  • Click Save and you will get a pop-up.

    images/download/attachments/143474941/assignWebhookTrapEventPopup-version-1-modificationdate-1683063292383-api-v2.png


    • Click Ok to overwrite the webhook definitions currently assigned to trap event id 63 with webhook definition ids 5 and 7.

    • Click Review Changes to review the policy webhooks association before overwriting trap event id 63. A pop-up appears.
      images/download/attachments/143474941/assignWebhooksReviewChanges---2-version-1-modificationdate-1683063292298-api-v2.png

      Since this is the first time webhook definition(s) are being assigned to trap event id 63, there are no Existing Definitions for it.

      Click Done after reviewing the details. If you want to continue with the assignment of the webhook definitions to the trap event(s) selected, click Ok to save or Cancel to exit.

      Trap event id 63 already has images/download/attachments/143474941/groupingTrapEventEditorIcon-version-1-modificationdate-1683063292349-api-v2.png icon in column 2 under Flags for Grouping Options.


      If you clicked the Ok button, in addition to images/download/attachments/143474941/groupingTrapEventEditorIcon-version-1-modificationdate-1683063292349-api-v2.png icon, you will also see that trap event id 63 has images/download/attachments/143474941/webhookIcon-version-1-modificationdate-1683063292366-api-v2.png icon (for webhook definition) in column 5 under Flags. This indicates that trap event id 63 now has webhook definition ids 5 and 7 assigned to it.
      images/download/attachments/143474941/trapEventList---4-version-1-modificationdate-1683063292352-api-v2.png


      To confirm this, click row with trap event id 63 > in Actions column click images/download/attachments/143474941/wrench-version-1-modificationdate-1683063292403-api-v2.png . Choose tab Trigger. You will see that webhook definition ids 5 and 7 (Trap with Data Insight and Trap for Watson AIOps respectively) are assigned to trap event id 63.
      images/download/attachments/143474941/trapEventWebhooksAssigned---2-version-1-modificationdate-1683063292295-api-v2.png

      You will see that Trap Event ID 63 has Webhook Definition IDs 5 and 7 assigned to it.

      Webhook Definition ID 4 is available but not used.

      images/download/attachments/143474941/trapEventWebhooksUnassigned---2-version-1-modificationdate-1683063292292-api-v2.png

      If you choose to assign Webhook Definition ID 4 to Trap Event ID 63, select Trap using Slack from the drop-down list and click the Save button.


Example

Assume that,

  • Trap Event ID 25 has Webhook Definition IDs 4 and 7 assigned to it.

  • Trap Event ID 63 has Webhook Definition IDs 5 and 7 assigned to it.

Based on this, Events > Configure > Webhook Definition Manager will appear as the following.

images/download/attachments/143474941/webhookDefinitionManagerAssignedToTrapEvents-version-1-modificationdate-1683063292261-api-v2.png

where,

  • Webhook Definition ID 4 has 1 Trap Event in column Used In. This is because only one trap event, 25, has been assigned to this ID.

  • Webhook Definition ID 5 has 1 Trap Event in column Used In. This is because only one trap event, 63, has been assigned to this ID.

  • Webhook Definition ID 7 has 2 Trap Events in column Used In. This is because 2 trap events, 25 and 63, have been assigned to this ID.

Clear Webhooks

  1. Select one or more trap event ids where webhook(s) are assigned.

  2. Click images/download/attachments/143474941/clearWebhooksIcon-version-1-modificationdate-1683063292406-api-v2.png to remove the webhook(s) assigned to the selected trap event id(s).

    Example
    • Select trap event id 25 as webhook definition ids 4 and 7 are assigned to it.

    • Click images/download/attachments/143474941/clearWebhooksIcon-version-1-modificationdate-1683063292406-api-v2.png .

    • You will get the following pop-up to confirm the deletion.
      images/download/attachments/143474941/trapEventWebhooksClear-version-1-modificationdate-1683063292346-api-v2.png

    • Click Yes to clear the webhooks. Otherwise, click No.

      If both trap event ids 25 and 63 were selected and you clicked images/download/attachments/143474941/clearWebhooksIcon-version-1-modificationdate-1683063292406-api-v2.png , webhook definition ids assigned to both trap event ids 25 and 63 will get deleted.


Webhook Definitions

Click images/download/attachments/143474941/webhookDefinitionsIcon-version-1-modificationdate-1683063292410-api-v2.png to create / configure, modify, or delete webhook definitions. For details, please refer to Webhook Definition Manager .

Search

The search capability allows user to search the table for the word enter in the field.

List of Trap Events

Each trap has a primary OID that designates the trap type. Each trap event has a target OID. When the trap primary OID matches the trap event target OID and any trap event variable conditions you define, the trap triggers the trap event. The list of trap events displays the following information.

  1. Flags - can display the following flags. There are 5 columns under Flags.

    1. column 1 - displays images/download/attachments/143474941/emailTrapEventEditor-version-1-modificationdate-1683063292425-api-v2.png when trap event triggers an email.

    2. column 2 - displays images/download/attachments/143474941/groupingTrapEventEditorIcon-version-1-modificationdate-1683063292349-api-v2.png when trap event applies to specific Device Groups / Device Types.

    3. column 3 - displays images/download/attachments/143474941/variableBindingsTrapEventEditor-version-1-modificationdate-1683063292428-api-v2.png when trap has variable conditions.

    4. column 4 - displays images/download/attachments/143474941/clearTrapEventEditor-version-1-modificationdate-1683063292432-api-v2.png when trap has clear condition(s) assigned to it.

    5. column 5 - displays images/download/attachments/143474941/webhookIcon-version-1-modificationdate-1683063292366-api-v2.png when trap has webhook definition id(s) assigned to it.

  2. ID – displays the internal identifier for the trap event which is helpful for API workflows.

  3. Trigger OID - displays the resolved name of the trap event target OID.

  4. Description - displays the general description for the selected trap event id.

  5. Log - displays Yes when you define the trap event to display the trap on the Logged Traps page or displays No when the trap does not appear on the Logged Traps page.

  6. Alert - displays the severity level for the alerts the trap triggers when you define the trap event to trigger an alert or displays No when you define the trap event to not trigger an alert.

  7. Trigger Message - displays the message you define for the trap to display.

  8. Enabled - displays Yes when the trap event is enabled or displays No when the trap event is disabled.