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

2

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) MPViewer.zip

6

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…

1

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; using System.Collections.ObjectModel; using System.Text; using Microsoft.EnterpriseManagement; using Microsoft.EnterpriseManagement.Administration; using…

1

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; using System.Text; using Microsoft.EnterpriseManagement; using Microsoft.EnterpriseManagement.Administration; using Microsoft.EnterpriseManagement.Common; using…

2

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 computer is a member of. Steps to run the script: 1 –…

7

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$ Event Number                      – $Data/Context/EventNumber$ User Name                          – $Data/Context/UseName$ Event Description                 – $Data/Context/EventDescription$

8

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 you need to use in order to include this info in the alert description: Counter Value                      – $Data/Context/Value$…

6

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 objects that you wish to put into maintenance mode 2…

15

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, and one day you may need to…

9