Solved

Finding out if mirroring is active and alive

Posted on 2010-11-14
5
747 Views
Last Modified: 2012-05-10
I have an SQL Server 2008 running with a mirrored database, with distinct machines (master, slave, witness). I need to program an administrator's tool where he can see with a kind of traffic light if mirroring is active and working, and if the sql server instances are healthy and running.

How can this be achieved ? Is there any kind of API or .NET library for examining these tings ? Or could I talk to the network ports (5022 for the mirroring, for example) to find this out, and if yes, what must be called ?
0
Comment
Question by:PC-Alex
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 31

Accepted Solution

by:
James Murrell earned 500 total points
ID: 34132372
we used script @ http://www.mssqltips.com/tip.asp?tip=1859

also at bottom of that page some good reading info
0
 
LVL 20

Expert Comment

by:Marten Rune
ID: 34132413
Use mirror monitor: http://social.msdn.microsoft.com/Forums/en-US/sqldatabasemirroring/thread/2b7bd2e2-3d82-48b7-a478-715b9e670c07

Not a administrative comment. Sorry about that!

//Mårten
0
 
LVL 31

Expert Comment

by:James Murrell
ID: 34132419
LOL martenrune keeps happening to me...( cannot see in edit profiel etc where to set it)
0
 
LVL 1

Author Closing Comment

by:PC-Alex
ID: 34170821
Thanks, thats kind of what I was looking for
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Long way back, we had to take help from third party tools in order to encrypt and decrypt data.  Gradually Microsoft understood the need for this feature and started to implement it by building functionality into SQL Server. Finally, with SQL 2008, …
There have been several questions about Large Transaction Log Files in SQL Server 2008, and how to get rid of them when disk space has become critical. This article will explain how to disable full recovery and implement simple recovery that carries…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question