Setting up email alerts for replication
You can receive email alerts for errors or status changes in your replication environment by setting up the Replication Alert Monitor within IBM® Data Replication for Availability.
Before you begin
To enable alerts:
- For IBM Integrated Analytics System, configure an email server. See ap config command for details. If you are running replication in Db2® Warehouse, the email server is configured automatically when you enable monitoring.
- Ensure that you have unique replication user IDs on both the source and target databases with DBADM authority.
- Run all scripts while logged in as dsadm.
About this task
The monitor program (also known as asnmon) is included in the Db2 common container. It runs in the source database and monitors the status of the replication capture and apply programs. The program monitors for alert conditions, which are conditions in the replication environment that trigger email alerts.
The following alert conditions are available:
| qcapture_status | When the capture program is not running. |
| qcapture_errors | When the capture program issues an error message. |
| qapply_status | When the apply program is not running. |
| qapply_errors | Whether the apply program issues an error message. |
| qapply_exceptions | When the apply program logs an exception for row changes that could not be applied because of a conflict or SQL error. |
| qapply_eelatency | When the end-to-end latency of replicated transactions exceeded a set threshold. The default is 60 seconds. |
When an alert is triggered, the monitor program sends an email to one or more email addresses that you specify when you enable the program. The alert emails continue hourly until the condition is resolved.
For more detailed information on the monitor program, see Replication Alert Monitor, which covers the non-containerized version of the monitor program. Note that some options are different.
