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


Mirror database monitoring


Mirror database monitoring

Author
Message
richardmgreen1
richardmgreen1
SSCrazy
SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)

Group: General Forum Members
Points: 2946 Visits: 1052
Hi all

We've got a mirrored database on one of our servers and there's a mirrored database monitoring job set up.
As far as I can see, all it does it write data to a table.
Now, I've got a couple of questions:-
Can I set this job up to email if the originating mirror goes down? If so, has anyone got any pointers? The job runs every minute but I don't want to get bombarded with emails if it does (every 15 minutes will be plenty).

I can see the table in the MSDB database, but I'm not sure what the "Status" field is for. Anyone got any useful links as I'm obviously not searching the correct terms on Google?

I know the originating mirror went down yesterday (it was rebooted), but I can't see any evidence of that for the correct time-frame?
Anyone any pointers on reading the dbm_monitor_data table please?
Gazareth
Gazareth
SSChampion
SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)

Group: General Forum Members
Points: 11462 Visits: 6068
Hi Richard,
You can set up a WMI alert in SQL Agent to notify you when mirroring state changes, see the Database Mirroring State Change Events section here:
http://technet.microsoft.com/en-us/library/cc966392.aspx

There's also a script for a table & job that'll record state change history.
I've used these before, very useful. I do recommend limiting the alert to only certain state changes though.

Cheers
Gaz
richardmgreen1
richardmgreen1
SSCrazy
SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)

Group: General Forum Members
Points: 2946 Visits: 1052
Thanks Gazareth, I'll have a look now I'm back at work.
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