Resolving Alerts to cleanup SCOM console

SCOM consoles can become cluttered very quickly with stale alerts, the technique I use to clean up my console is as follows:-

Run the following Powershell one liners from a Windows Operations Manager command shell:-

#these are listed below and have been broken down to reflect severity/priority

CRITICAL/HIGH
get-alert | where-object{$_.resolutionstate -eq 0} | where-object {$_.priority -eq “High”} | resolve-alert

get-alert | where-object{$_.resolutionstate -eq 0} | where-object {$_.severity -eq “2”} | resolve-alert
WARNING/MEDIUM

get-alert | where-object{$_.resolutionstate -eq 0} | where-object {$_.priority -eq “Medium”} | resolve-alert

get-alert | where-object{$_.resolutionstate -eq 0} | where-object {$_.severity -eq “1”} | resolve-alert
INFORMATION/LOW

get-alert | where-object{$_.resolutionstate -eq 0} | where-object {$_.priority -eq “Low”} | resolve-alert

get-alert | where-object{$_.resolutionstate -eq 0} | where-object {$_.severity -eq “0”} | resolve-alert

NOTE:-Closing Alerts generated by Monitors isn’t best practice as they won’t alert again until the Health Status has been reset

So after completing the above I run an excellent utility called Reset Monitor from all Closed Alerts.exe which is run from a standard cmd prompt on my RMS. 

This tool scans all closed monitor alerts and checks the state of the related monitor, and if the monitor is not healthy, the state is reset.  At the next occurrence of the monitor after this has run, if the issue in question is still occurring then a new alert will be raised.

WordPress restrictions mean I can’t upload this utility as it is an exe file but it can be downloaded from here:-

http://blogs.technet.com/b/thiertho/archive/2010/01/04/alerts-management.aspx

UPDATE:-Files now uploaded to external cloud storage (3 files–a read me word doc and 2 tools)

https://docs.google.com/folder/d/0Bzl3QJW8U1j-T3NqUmtrdmFlLW8/edit

I think there is also a Powershell script somewhere out there that will do something similar but this tool works well for me.

UPDATE:-Please look at the Greenmachine MP in the Management Pack Category of this blog for a quicker way to reset monitors and clean up your SCOM console.

Advertisements
This entry was posted in Powershell for SCOM and tagged , , , , , , , , . 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