Submit a ticketCall us

Training Class Getting Started with SolarWinds Backup - February 28

This course offers customers an introduction to SolarWinds Backup, focusing on configuring the backup technology, taking backups, data restoration and data security. It is a great primer and will get you up to speed quickly on SolarWinds Backup.
Register for class.

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: 1,523 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

Tags

Classifications

Public