Quantcast
Channel: THWACK: All Content - Network Performance Monitor
Viewing all articles
Browse latest Browse all 21870

SWQL query to return all acknowledged alerts

$
0
0

Recently we upgraded to NPM 10.6, and for the longest time we wanted to have some sort of report to show only acknowledged alerts.  The idea was that the report could be ran daily to show the currently ack'ed alerts, and a supervisor could check in with the team member if need be to see what the progress is, or what the alert has been acknowledged for so long without being cleared.

 

This is the SWQL I came up with:

 

SELECT Nodes.Caption AS [Name], AlertDefinitions.Name AS [Alert Name],
AlertStatus.TriggerTimeStamp AS [Alert Time], AlertStatus.AcknowledgedTime AS [Acknowledged Time],
AlertStatus.AcknowledgedBy AS [Acknowledged By], AlertStatus.Notes
FROM Orion.AlertStatus
INNER JOIN Orion.Nodes
ON AlertStatus.ActiveObject = Nodes.NodeID
INNER JOIN Orion.AlertDefinitions
ON AlertStatus.AlertDefID = AlertDefinitions.AlertDefID
WHERE Acknowledged = '1'

 

This results in the following output:

 

NameAlert NameAlert TimeAcknowledged TimeAcknowledged ByNotes
ComputerNameHigh RAM Utilization9/27/2013 3:27:48 PM9/27/2013 4:02:08 PMDOMAIN\Username- Orion WebsiteAcknowledged:Acked for testing of Orion's reporting functionality.

 

Note that this could be expanded to also only show alerts that have acknowledgements that are older than X number of days, or to convert the UTC time into the local time zone.  However, currently the Orion SDK (v1.7) does not support the functions needed to pull this off, but should in "the next major release" (according to tdanner, as seen here: http://thwack.solarwinds.com/message/198138#198138)


Viewing all articles
Browse latest Browse all 21870

Trending Articles



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