Monitoring and managing replication