Submit a ticketCall us

Solarwinds & Cisco Live! Barcelona
Join us from the 29th of January to the 2nd of February at Cisco Live 2018 in Barcelona, where we will continue to show how monitoring the network with SolarWinds will keep you ahead of the game. At our booth (WEP 1A), we will demonstrate how SolarWinds network solutions can help. As a bonus, we are also hosting a pre-event webinar - Blame the Network, Hybrid IT Edition with our SolarWinds Head Geek™, Patrick Hubbard on January 24th - GMT (UTC+0): 10:00 a.m. to 11:00 a.m. There's still time to RSVP.

Home > Success Center > Server & Application Monitor (SAM) > SQL Query to trace which actions are assigned to an alert

SQL Query to trace which actions are assigned to an alert

Table of contents
Created by Norsolihati Selamat, last modified by An Kian Wong on May 18, 2017

Views: 1,178 Votes: 0 Revisions: 8

Overview

This article provides steps to query which particular email addresses are assigned to which alert using SQL query.

Environment

NPM 11.5.x and later

Detail

Run the following SQL query against the Database:

 

SELECT ac.AlertID, ac.Name, ac.Description, ac.Enabled, 
ac.Severity, ac.CreatedBy, ap.ActionID,a.actiontypeid, ac.AlertMessage,
a.Title, a.Description, ap.PropertyName, ap.PropertyValue
FROM ActionsProperties ap
LEFT JOIN ActionsAssignments aa ON ap.ActionID = aa.ActionID
LEFT JOIN Actions a ON a.ActionID = ap.ActionID
LEFT JOIN AlertConfigurations ac ON aa.ParentID = ac.AlertID
WHERE ac.Enabled='true' and a.actiontypeid = 'email' and a.Description like '%test@test.com%'

 

You need to change '%test@test.com%' to the email address that you are looking for.

 

 

Last modified

Tags

Classifications

Public