Creating a new task with overridable parameters

Couple of days ago I saw a question on one of the newsgroups regarding creating a task where the operator can specify one or more parameters that are used by the task when launching the task. Unfortunately it’s not possible to create such as task today in the OpsMgr console, however you can do this…


Enumerating Windows Event log manual reset monitors

Couple of days ago I saw a question about how can one find out the list of manual reset event log monitors in a management group. Given that this is a little bit tricky I decided to post a sample so that others could see how to do it as well. Attached is a powershell…


Targeting poster

Below is a link to a targeting poster that we have created to help select the proper targets when creating rules and monitors. The poster illustrates some of the most common scenarios and provides best practices on how to properly target rules and monitors. Feedback is always welcome of course.  


OpsMgr SP1 – Creating rules and monitors for multi instance components

When creating a monitor or a rule for a multi instance component you need to be very careful or else you may end up with wrong monitoring logic. The two important parts are: 1.       Target the rule/monitor to the correct target type 2.       Specify the correct performance object, counter, and instance name. Here is short…


Retrieving rules and monitors targeted to a particular class (target)

This question came up several times in various forums so I wanted to post a sample script that shows how you can retrieve the list of both rules and monitors targeted to a particular class (target): $mc = get-monitoringclass | where {$_.DisplayName -eq ‘Windows Server 2003 Logical Disk’} $rules = $mc.GetMonitoringRules() $monitoringCrit = [System.String]::Format(“TargetMonitoringClassId='{0}’”,$mc.Id) $monitors…


OpsMgr SP1 – Removing instances for which discovery is disabled

One of the issues that we saw in OpsMgr RTM is that if you disabled a discovery using an override let say a particular SQL DB, the instance created by this discovery would not be removed. In SP1 we have added a new cmdlet to force the removal of instances for which discovery is disabled using…


Creating a performance collection rule using the SDK

Here is a sample that demonstrates how to create a performance collection rule using the SDK. The only caviat is that this rule will not work for agentless monitoring. A powershell version will follow soon. using System; using System.Collections.Generic; using System.Text; using Microsoft.EnterpriseManagement; using Microsoft.EnterpriseManagement.Configuration;   namespace RuleCreationSample {     class Program     {        …


Including the NT service info in the alert description

When creating a NT service unit monitor, you might want to include in the alert description the service information. Here are the expression that you can use in order to include the service information in the alert description: Service Name                           – $Data/Context/Property[@Name=’Name’]$ Service Dependencies               – $Data/Context/Property[@Name=’Dependencies’]$ Service Binary Path                  – $Data/Context/Property[@Name=’BinaryPathName’]$ Service Display Name               – $Data/Context/Property[@Name=’DisplayName’]$ Service Description                   – $Data/Context/Property[@Name=’Description’]$


MP Viewer 1.2

I added a couple of things that people have asked for: The ability to save to HTML. Looks like quite a bit of people asked for this. More info about monitors (whether it generates an alert, what’s the severity, is the alert auto resolved) More info about discoveries (how frequency does the discovery run)


What’s in my groups?

Here is a script I put together that demonstrates how to retrieve all the groups and then retreive the contents of each group as well as the types of objects contained in the group. In order to run the script you will need to do the following: 1 – Save the script 2 – Open…