SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Log Shipping Alerts not sending email to operator


Log Shipping Alerts not sending email to operator

Author
Message
Matthew Darwin
Matthew Darwin
SSC-Addicted
SSC-Addicted (461 reputation)SSC-Addicted (461 reputation)SSC-Addicted (461 reputation)SSC-Addicted (461 reputation)SSC-Addicted (461 reputation)SSC-Addicted (461 reputation)SSC-Addicted (461 reputation)SSC-Addicted (461 reputation)

Group: General Forum Members
Points: 461 Visits: 875
Howdy!

I have log shipping configured from a primary server to a secondary and I'm trying to get the notifications working when latency occurs. These are set to backup, copy and restore within a 15 minute window.

I've deliberately set up a database that is out of sync in order to test raising latency alerts; viewing the Transaction Log Shipping Status report (the one from the inbuilt standard reports) it is showing 13 minutes since the last log copy and 61900 minutes since the last restore (the logs can't be restored because I've held the first log in the chain aside to test the alerting). The Threshold is set to 45 minutes and the Alert Enabled is showing as True. In addition the Status of the report is showing as "Alert" for that database.

In the SQL Server log Error 14421 is being raised and the message is in line with the above report.

The Log shipping Secondary Server Alert is enabled, and set to Notify Operators, and I have created an operator with my email and set the response to email that operator. Checking the history of the alert, it's showing that it has been raised 33030 times and is being updated everytime the LSAlert job runs in the agent.

Checking the operator, I have my email configured and the operator is enabled. In the notifications it's showing the log shipping Secondary Server Alert sending via email. However, in the history, it's showing that the operator has never been emailed.

I've also tested my database mail and this is sending through.

Anyone able to shed some light on what I'm missing/have failed to set up? Could this be to do with the database mail profiles? Currently I only have a single profile, which is set to public and to be the default profile.

Scratching my head a little on this one now.

If any more info is needed, please let me know and I'll get it together.

Cheers,

Matthew

Follow me on twitter @EvoDBA

Check out my blog Natural Selection DBA
Matthew Darwin
Matthew Darwin
SSC-Addicted
SSC-Addicted (461 reputation)SSC-Addicted (461 reputation)SSC-Addicted (461 reputation)SSC-Addicted (461 reputation)SSC-Addicted (461 reputation)SSC-Addicted (461 reputation)SSC-Addicted (461 reputation)SSC-Addicted (461 reputation)

Group: General Forum Members
Points: 461 Visits: 875
Doh, found the problem; I hadn't set up the SQL Server Agent on that server to send emails. I knew it would be something simple!

Follow me on twitter @EvoDBA

Check out my blog Natural Selection DBA
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search