Documentation forDatabase Performance Analyzer

Send SNMP traps from DPA alerts

You can configure DPA alerts to send SNMPv2c traps to an SNMP-enabled Network Management System (NMS) when an alert level is reached and when the alert level returns to Normal. The trap contains the name of the monitored database instance, alert name, alert level, and response instructions.

To configure an alert to send an SNMP trap, complete the following tasks:

  1. Import the DPA MIB file into your NMS.
  2. Create one or more SNMP contacts. The SNMP contact defines the response instructions included in the trap, and so you must create different contacts for alerts with different response instructions.
  3. In the alert definition, add the SNMP contact as recipient for the alert level that you want to send a trap.

The DPA MIB file

DPA contains a Management Information Base (MIB) file that defines the trap and the associated data sent with each trap. The MIB file defines the following:

  • Private Enterprise Number
  • One Trap Definition (NOTIFICATION-TYPE)
  • Four string objects bound to each trap: database name, alert name, alert level, and response instructions

Before configuring DPA to send SNMP traps, provide the MIB file to the person responsible for importing MIB files into the NMS. The MIB file is in the following location:


Create an SNMP contact

The NMS that receives the trap is represented as an SNMP contact in DPA.

  1. From the DPA menu in the top-right corner, click Options.
  2. Under Administration > Users & Contacts, click Contact Management.
  3. Click Create SNMP Contact.
  4. Enter a name and description to identify the associated alert(s).

    By default, contacts are Active. You can select Inactive to disable the contact. When a contact is disabled, alerts associated with this contact do not send traps to the NMS.

  5. Identify the NMS to send the trap to:

    1. In the Trap Receiver Host field, enter the hostname or IP address of the server where the NMS is running.
    2. In the Trap Receiver Port field, enter the port number where the NMS host is receiving traps. The default is 162.
    3. In the Community String field, enter the community string used by the NMS for traps.
  6. Enter the response instructions to be included in the trap.
  7. To test the configuration, click Send Test SNMP Trap, and then verify that the NMS received the trap.
  8. (Optional) To add the contact to a group, select the group and click Add.

    For example, when an alert reaches a certain level, you might want to send an email to the on-call personnel and send a trap to the NMS. You can add the SNMP contact to the On Call group.