SCOM PowerShell Script – Close All “Agent proxy not enabled” Alerts

Howdy,

I decided to write a PowerShell Script which will:
1. Go through All “Agent proxy not enabled” Alerts
2. Create a List of Agents where proxying should be enabled.
3. Ask you if proxying should be enabled for particular instance.
4. Once this is done Scripts Asks you if you would like to Close All “Agent proxy not enabled” events

When opening Active Alerts in SCOM Console you might see a lot of “Agent proxy not enabled” Alerts.

ProxyAgentAlerts

Multiple alerts can be triggered for same “agent”. First I thought to myself why not enabling proxying on all servers that get this alert. When I further investigated I found out that a lot of this alerts were triggered by IBM Hardware management pack. In fact IBM MP Was triggering this alerts on ALL SCOM Agents.

So I had addressed and solved this IBM MP issue. But still there were multiple Proxy Alerts. So I decited to write a Script.

To Avoid enabling Proxying on all agents which would happens if IBM MP was deployed I decided to Ask if Proxying should be enabled for particular Agent.

This is how it Works:

1. Open:

OpsMgrShell

2. Run: CloseAllSCOMProxyAlerts.ps1

3. Script will ask you if proxying should be enabled for particular SCOM Agent:

Proxy01Transfer

4. Once It completes it will ask you if you would like to Close all “Agent proxy not enabled” Alerts:

ProxyCloseAlerts
If you choose Yes – All “Agent Proxy” alerts will be set to Closed State:

ProxyCloseAlertsYes

Script Can be downloaded from Here.

Till Next time..
Jure

 

Advertisements
This entry was posted in Operations Manager, PowerShell 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