Applications Systems
Create an alert on SQL Database Mirroring Status
This article discusses on how to create an alert for SQL Database Mirroring Status
First published date
Last published date
Overview
NOTE: This article is for informational purposes only. Solarwinds Support cannot assist with custom SQL alerts.
The following steps will detail how you can create an alert based on the Database Mirroring Status when monitoring the SQL via AppInsight for SQL.
Product section
Resolution
- Open Alert Manager via Settings > Manage Alerts.
- Create a new alert.
- In the Trigger Conditions, specify the following:
I want to alert on: Custom SWQL Alert (Advanced)
Set up your SWQL condition:
AppInsight for SQL: DatabaseSELECT SqlDatabase.Uri, SqlDatabase.DisplayName FROM Orion.APM.SqlDatabase AS SqlDatabase INNER JOIN Orion.APM.SqlDatabaseMirroring as Mirroring ON SqlDatabase.DatabaseID=Mirroring.DatabaseID WHERE Mirroring.State != '4'
Disclaimer: This article is for informational purposes only. Solarwinds Support cannot assist with custom SQL alerts.
The following steps will detail how you can create an alert based on the Database Mirroring Status when monitoring the SQL via AppInsight for SQL.
Any further customization can be queried through our Thwack Community.