SCOM Alerts with Repeat Counts SQL Query

Run this SQl Query against your Operations Manager DB to retrieve Alerts and the repeat counts. Just replace the Resolution= 0 with the correct Resolution state.

SELECT RepeatCount, COUNT(*) AS NumAlertsWithRepeatCount FROM Alert WHERE ResolutionState =0 AND RepeatCount > 0 GROUP BY RepeatCount ORDER BY RepeatCount DESC –# of Alerts with the same RepeatCount SELECT RepeatCount, COUNT(*) AS NumAlertsWithRepeatCount FROM Alert WHERE ResolutionState = 0 AND RepeatCount > 0 GROUP BY RepeatCount ORDER BY COUNT(*) DESC

Advertisements
This entry was posted in SQL. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s