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:

DPA-install-dir/iwc/CONFIO-MIB.mib

Create an SNMP contact

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

  1. Log in to DPA using an account with administrator privileges.
  2. From the DPA menu in the upper-right corner, click Options.
  3. Under Administration > Users & Contacts, click Contact Management.
  4. On the Contact management page, click Create contact.

    If any contacts are selected, the Create contact button is not displayed.

  5. Under Contact type, select SNMP.
  6. Enter a name and description to identify the associated alerts.

  7. Identify the NMS to send the trap to:

    1. In the Trap receiver host field, enter the host name 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.
  8. Enter the response instructions to be included in the trap.
  9. To test the configuration, click Send test SNMP trap. Then verify that the NMS received the trap.
  10. (Optional) Add the contact to one or more groups.

    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.

    1. Click the down-arrow under Assign contact to groups.

    2. Click a group name to select the group.

      The group is shown in the Assign contacts to groups box.

    3. Repeat these steps to add the contact to more groups.

  11. Click Create.

    The contact is added to the list of contacts.