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.
- Log in to DPA using an account with administrator privileges.
- From the DPA menu in the upper-right corner, click Options.
- Under Administration > Users & Contacts, click Contact Management.
On the Contact management page, click Create contact.
If any contacts are selected, the Create contact button is not displayed.
- Under Contact type, select SNMP.
Enter a name and description to identify the associated alerts.
Identify the NMS to send the trap to:
- In the Trap receiver host field, enter the host name 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. Then verify that the NMS received the trap.
(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.
Click the down-arrow under Assign contact to groups.
Click a group name to select the group.
The group is shown in the Assign contacts to groups box.
Repeat these steps to add the contact to more groups.
The contact is added to the list of contacts.