Quantcast
Channel: SQL Server High Availability and Disaster Recovery forum
Viewing all articles
Browse latest Browse all 4689

sql server 2012 AlwaysOn sys.dm_hadr_availability_replica_states role_desc sp_update_alert

$
0
0

Is it possible to get an alert when an AlwaysOn group goes into a state of RESOLVING?

In the DMV "sys.dm_hadr_availability_replica_states", in the column "role_desc" when it says "RESOLVING" nothing can connect to nether the primary nor the replica, granted it is a short period normally around 5 seconds, but we want alerting on this.  The RESOLVING state is when it is deciding whether it should fail over and this is based on the number of errors that the cluster has seen at the OS level.  We are running Windows Server 8 and SQL Server 2012.  We have changed the default "Maximum failures in the specified period" from 2 to 3 and the "Period (hours)" from 6 to 4.  (in cluster admin, under roles you will find the AlwaysOn groups, right click and goto properties)

PS:  If someone knows a monitoring tool that can do this with the correct template, I would like to hear from the vendor.

 

I need something like the below deadlock alert:
--------------------------------------------------------------------------------
EXEC msdb.dbo.sp_update_alert @name=N'Alert - Deadlocks Occuring', 
@message_id=0, 
@severity=0, 
@enabled=1, 
@delay_between_responses=0, 
@include_event_description_in=1, 
@database_name=N'', 
@notification_message=N'', 
@event_description_keyword=N'', 
@performance_condition=N'SQLServer:Locks|Number of Deadlocks/sec|_Total|>|0', 
@wmi_namespace=N'', 
@wmi_query=N'', 
@job_id=N'00000000-0000-0000-0000-000000000000'

Viewing all articles
Browse latest Browse all 4689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>