Loading the SCOM PowerShell Module, For Real This Time!

This is just a quick post and reference for how I have come to load the SCOM PowerShell module for scripts that requiring SCOM cmdlets. It evolved from several examples I borrowed (thank you to those sources which I've since lost), combined with some real world experiences (such as running inside a SCOM rule /…

0

Multi-home Management Group Automation MP

  Hello, just fulfilling a quick ask with this one. With SCOM 2012 we were given the ability to manage agent Management Group configuration using the Agent Config Manager Object or AgentConfigManager.MgmtSvcCfg. It can be leveraged in VBS or PowerShell to Add, Remove, and List SCOM management groups configured on the agent. This isn’t groundbreaking…

0

Sky Blue–How to keep monitors from going unnoticed after closing an alert

Scenario: A 3-state logical disk monitor targets a disk that meets the warning threshold. A warning alert is raised. The Operations Team sees the alerts, consults SOP guidance which states ignore warnings, and manually closes the alert. The alert is gone, but the underlying monitor is still unhealthy with a state of warning. A day…

3

Authoring with Azure Run As Certificate Credentials

As Azure becomes more prominent, I’m running into more asks on how monitor Azure from an on-premises perspective. As of this writing, we have a couple management packs available now that can help with this. One that monitors cloud services (VMs and storage), and it also discovers the presence of SQL Azure—System Center Management Pack…

0

UNIX/Linux Log File Monitor Alert Description Tips

Hello! I recently had the opportunity of working with a customer who had a pretty simple ask about log file monitoring. When using the UNIX/Linux Log File Monitor Management Pack template, how do we include more than just one line that matched, and include all lines that matched since the last interval? This is a…

2

How to find Subscriptions with deleted Rules and Monitors

… Or an introduction to subscription criteria. What I want to share today is a PowerShell snippet I've been sitting on that checks out the current subscriptions for rules or monitors that no longer exist. With some of the newer management packs replacing their old versions, this can really help save some time in tracking…

1

Example MP to Trigger Non-stop Notifications

Occasionally I speak to someone who would like to have OpsMgr continually send notifications until an alert is resolved. One way this can be done is by setting up multiple notification subscriptions and staggering the alert aging. The problem with this method is it is finite, and can be quite tedious to setup. Alternately, we…

0