Greetings -
Can we monitor database replication using SQL Sentry, DPA, or something in Solarwinds Orion?
I did some quick searching and did not come up with anything yet.
Thanks!
Dave
Greetings -
Can we monitor database replication using SQL Sentry, DPA, or something in Solarwinds Orion?
I did some quick searching and did not come up with anything yet.
Thanks!
Dave
What kind of replication are you doing? AGs, mirroring, other?
The simple answer is AGs.
AG health is probably what you want, there's a windows event log for errors and then health can be done with powershell SAM or simmilar, perhaps just SQL SAM
You can use a SAM SQL monitor to query the SQL instance if there are any AG's that is failing. Use below query:
select g.name INTO #AGStatus from sys.dm_hadr_availability_group_states S inner join sys.availability_groups G on s.group_id=G.group_id Where synchronization_health<2 AND s.primary_recovery_health=1 IF (Select COUNT(name) from #AGStatus)>0 BEGIN Select count(*) as "Rowcount", t.FailingAG from( Select substring( ( Select ', '+ags.name AS [text()] From #AGStatus ags For XML PATH ('') ) , 2, 1000) [FailingAG] From #AGStatus ags) as t group by t.FailingAG END ELSE Select 0 AS "RowCount" Drop table #AGStatus
You can use a SAM SQL monitor to query the SQL instance if there are any AG's that is failing. Use below query:
select g.name INTO #AGStatus from sys.dm_hadr_availability_group_states S inner join sys.availability_groups G on s.group_id=G.group_id Where synchronization_health<2 AND s.primary_recovery_health=1 IF (Select COUNT(name) from #AGStatus)>0 BEGIN Select count(*) as "Rowcount", t.FailingAG from( Select substring( ( Select ', '+ags.name AS [text()] From #AGStatus ags For XML PATH ('') ) , 2, 1000) [FailingAG] From #AGStatus ags) as t group by t.FailingAG END ELSE Select 0 AS "RowCount" Drop table #AGStatus
SolarWinds solutions are rooted in our deep connection to our user base in the THWACK® online community. More than 200,000 members are here to solve problems, share technology and best practices, and directly contribute to our product development process.