Welcome to MSDN Blogs Sign in | Join | Help

October 2007 - Posts

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']$

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
Posted by Boris Yanushpolsky | 6 Comments

Attachment(s): MPViewer.zip

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

Creating an Event Log unit monitor using the SDK

Here is a sample of how you can create an event log unit monitor. As you can see it's very similar to creating an NT service unit monitor. The main difference is the monitor type and the configuration passed to the monitor. using System; using System.Collections.Generic;

Creating NT Service unit monitor using the SDK

This came up several times so I decided to write a blog post on how you can create a unit monitor using the SDK. I will try post a PS script that does the same thing in the next several days. using System; using System.Collections.Generic; using System.Collections.ObjectModel;

Which groups is a particular computer member of?

Given that groups are used for role based security, overrides, reports, and some other features, it might be pretty interesting to know what groups is a particular computer member of. Attached is a sample script that dumps the list of groups that a particular
Posted by Boris Yanushpolsky | 7 Comments
Filed under:

Attachment(s): GetContainingGroups.zip

Including the event info in the alert description

When creating a Event Log unit monitor, you might want to include in the alert description the event information. Here are the expression that you can use in order to include the event information in the alert description: Publisher Name - $Data/Context/PublisherName$

Including the performance counter info in the alert description

When creating a Windows Performance Counter unit monitor, you might want to include in the alert description four pretty important pieces of information: Performance Object Name, Counter Name, Instance Name, Counter Value. Here are the expression that

What if I dont want to put the whole computer into maintenance mode?

Sometimes you may not wish to put the whole computer into maintenance mode. Instead you may wish to put just a number of databases or websites into maintenance mode. The steps are very simple: 1 - Get the monitoring class that represents the type of monitoring
Posted by Boris Yanushpolsky | 15 Comments
Filed under:

Specifying a run as account for a run as profile

Here is a sample script that demonstrates how to specify which RunAs account to use for a particular RunAs profile on a particular agent. The main reason I am blogging about this is that the code that needs to be written to do this is not straight forward,

MPViewer V1.1

Added some improvements based on comments from couple of the MOM MVPs. 1. See the following additional MP components: Targets (classes), Relationships, Discoveries, Diagnostics, Recoveries. 2. Ability to see the raw XML in a tab next to the knowledge
Posted by Boris Yanushpolsky | 4 Comments

Attachment(s): MPViewer.zip

The Exchange 2007 MP for OpsMgr is here

The Exchange 2007 MP for OpsMgr 2007 is done and can be found on the download site: http://www.microsoft.com/downloads/details.aspx?FamilyId=1A83E112-8677-4E03-83C3-F1B7EBFC3A4B&displaylang=en

MPViewer (What's in my management pack part 2)

One thing I realized after the last blog post about dumping the contents of a management pack is that in many cases it’s very useful to know what's inside a management pack before you import it. So I put together a small utility to display the following
Posted by Boris Yanushpolsky | 4 Comments

Attachment(s): MPViewer.zip

What's in my management pack?

Here is a simple script that I wrote for someone today to dump the contents of a management pack that include views, rules, monitors, tasks, console tasks. I figured others might find it useful as well. In order to run the script, open up the OpsMgr command
Posted by Boris Yanushpolsky | 6 Comments
Filed under:

Attachment(s): DumpMPContents.zip

Disabled discoveries

Some discoveries in the management packs that ship with OpsMgr are disabled out of the box. One of the reasons is that not everyone might be interested in monitoring certain components. The easiest way to prevent a particular component from being monitored
Posted by Boris Yanushpolsky | 3 Comments
Filed under:
 
Page view tracker