Professional Documents
Culture Documents
Purpose
You should consider using this procedure under the following condition:
You want to configure the BIG-IP system to send email notifications for
certain SNMP trap alerts.
Prerequisites
You must meet the following prerequisites to use this procedure:
BIG-IP ASM
11.4.1, 11.4.0, 11.3.0, 11.2.1,
11.2.0, 11.1.0, 11.0.0, 10.2.4,
10.2.3, 10.2.2, 10.2.1, 10.2.0,
SOL13180: Configuring the BIG-IP system to deliver locally-generated
10.1.0, 10.0.1, 10.0.0, 9.4.8,
email messages (11.x)
9.4.7, 9.4.6, 9.4.5, 9.4.4, 9.4.3,
9.4.2, 9.4.1, 9.4.0, 9.3.1, 9.3.0,
SOL3664: Configuring the BIG-IP system to deliver locally-generated
9.2.5, 9.2.4, 9.2.3, 9.2.2, 9.2.0
email messages (9.x - 10.x)
Description
SNMP traps provide a means of notification through external network
management systems (NMS) when certain events occur on the BIG-IP
system. In addition to the external NMS notification system, you can also
configure the BIG-IP SNMP agent to send email messages directly.
BIG-IP GTM
11.4.1, 11.4.0, 11.3.0, 11.2.1,
11.2.0, 11.1.0, 11.0.0, 10.2.4,
10.2.3, 10.2.2, 10.2.1, 10.2.0,
10.1.0, 10.0.1, 10.0.0, 9.4.8,
9.4.7, 9.4.6, 9.4.5, 9.4.4, 9.4.3,
9.4.2, 9.4.1, 9.4.0, 9.3.1, 9.3.0,
9.2.5, 9.2.4, 9.2.3, 9.2.2
BIG-IP PEM
11.4.1, 11.4.0, 11.3.0
Procedures
BIG-IP PSM
11.4.1, 11.4.0, 11.3.0, 11.2.1,
Configuring SNMP trap alerts to send an email notification
11.2.0, 11.1.0, 11.0.0, 10.2.4,
10.2.3, 10.2.2, 10.2.1, 10.2.0,
Impact of procedure: Performing the following procedure should not have a
10.1.0, 10.0.1, 10.0.0, 9.4.8,
negative impact on your system.
9.4.7, 9.4.6, 9.4.5
BIG-IP WebAccelerator
11.3.0, 11.2.1, 11.2.0, 11.1.0,
2. Back up the /etc/alertd/alert.conf file by typing the following command:
11.0.0, 10.2.4, 10.2.3, 10.2.2,
10.2.1, 10.2.0, 10.1.0, 10.0.1,
cp /etc/alertd/alert.conf /etc/alertd/alert.conf.SOL3667
10.0.0, 9.4.8, 9.4.7, 9.4.6, 9.4.5,
9.4.4, 9.4.3, 9.4.2, 9.4.1, 9.4.0
https://support.f5.com/kb/en-us/solutions/public/3000/600/sol3667.print.html
1/3
12/20/13
BIG-IP WOM
11.3.0, 11.2.1, 11.2.0, 11.1.0,
11.0.0, 10.2.4, 10.2.3, 10.2.2,
10.2.1, 10.2.0, 10.1.0, 10.0.1,
10.0.0
Enterprise Manager
3.1.1, 3.1.0, 3.0.0, 2.3.0, 2.2.0,
2.1.0, 2.0.0, 1.8.0, 1.7.0, 1.6.0,
1.4.1, 1.4.0, 1.2.2, 1.2.1, 1.2.0,
1.0.0
BIG-IP AAM
11.4.1, 11.4.0
BIG-IP Edge Gateway
11.3.0, 11.2.1, 11.2.0, 11.1.0,
11.0.0, 10.2.4, 10.2.3, 10.2.2,
10.2.1, 10.2.0, 10.1.0
alert <ALERT_NAME> {
snmptrap OID="<OID>"
}
For each alert definition for which you want to receive email notification, add a semicolon ( ; ) to the end of
the existing snmptrap line, and then add the following lines between the snmptrap line and the terminating
curly brace:
email toaddress=""
fromaddress=""
body=""
For example, the following modified alert sends an email notification using the configured email toaddress,
fromaddress, and body options:
alert BIGIP_SHELL_BP_CONFIGURATION_LOADED {
snmptrap OID=".1.3.6.1.4.1.3375.2.4.0.28";
email toaddress="demo@askf5.com"
fromaddress="root"
body="The test of this Solution worked!"
}
Note: You can send the email notifications to multiple recipients by separating the email addresses
specified in the email toaddress option with a comma ( , ), as shown in the following example:
email toaddress="demo@askf5.com,demo2@askf5.com"
2/3
12/20/13
Impact of procedure: Performing the following procedure should not have a negative impact on your system.
The alert example in this article is triggered when the BIG-IP system loads the configuration. If you have
customized this alert to send email notifications, you can trigger this alert to test whether the alertd process
will send you an email notification by entering the bigpipe load command to reload the configuration. For
more information about testing email alerts, refer to the following article that is appropriate for the BIG-IP
version you are running:
SOL11127: Testing SNMP traps on BIG-IP (9.4.x - 11.x)
SOL7165: Testing SNMP traps on BIG-IP (9.0.0 - 9.3.x)
When the alert is triggered, the BIG-IP system will send an email notification that appears similar to the
following example:
-----Original Message----From: root@bigip1.askf5.com
Sent: Monday, December 25, 2007 12:10 PM
To: demo@askf5.com
Subject: 010a0043:5: The configuration was successfully loaded.
The test of this Solution worked!
---END---
Note: The BIG-IP system appends the local host name to the configured fromaddress field to derive the
FQDN for inclusion in the From: address.
Supplemental Information
SOL4422: Viewing and modifying the files that are configured for inclusion in a UCS archive
SOL3727: Configuring custom SNMP traps
https://support.f5.com/kb/en-us/solutions/public/3000/600/sol3667.print.html
3/3