Submit a ticketCall us

Looking to compare latest NPM features with previous versions of NPM?
The NPM new feature summary offers a comparison of new features and improvements offered with this release.

 

 

 

 

Home > Success Center > Server & Application Monitor (SAM) > Create an alert on SQL Database Mirroring Status

Create an alert on SQL Database Mirroring Status

Table of contents
Created by Tiarnan Stacke, last modified by MindTouch on Jun 23, 2016

Views: 2 Votes: 0 Revisions: 3

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.

Environment

SAM 6.0 and later

Steps

  1. Open Alert Manager via Settings > Manage Alerts.
  2. Create a new alert.
  3. In the Trigger Conditions, specify the following:
    I want to alert on: Custom SWQL Alert (Advanced)

    Set up your SWQL condition:
    AppInsight for SQL: Database

    SELECT 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'

 

Last modified
02:49, 23 Jun 2016

Tags

Classifications

Public