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:
- Import the DPA MIB file into your NMS.
- 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.
- In the alert definition, add the SNMP contact as recipient for the alert level that you want to send a trap.
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:
The NMS that receives the trap is represented as an SNMP contact in DPA.
- On the DPA menu, click Options.
- Under Administration > Users & Contacts, click Contact Management.
- Click Create SNMP Contact.
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.
Identify the NMS to send the trap to:
- In the Trap Receiver Host field, enter the hostname or IP address of the server where the NMS is running.
- In the Trap Receiver Port field, enter the port number where the NMS host is receiving traps. The default is 162.
- In the Community String field, enter the community string used by the NMS for traps.
- Enter the response instructions to be included in the trap.
- To test the configuration, click Send Test SNMP Trap, and then verify that the NMS received the trap.
(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.