다음을 통해 공유


Is My Rule/Monitor Running?

Well, I haven't had a lot of inspiration lately in terms of questions to blog about. If nothing comes up in the next week or so, I might just start writing about various components in the SDK as it is a rather larger API, that is not particularily well documented at this point. Before I go down that route, however, I was going to give a quick tutorial on how to check if a rule/monitor is running.

1. Open the UI :-)
2. Go to the Monitoring Node
3. Go to the Discovered Inventory View
4. By default this view is scoped to Computer, you will want to change this by looking at the right Actions pane under State Actions. Hit "Change target type..."
5. In the :Look For" text box type "Health Service" and select it from the list below. The view will now refresh.
6. Select the health service you want to see if the rule/monitor is running for. The right pane will now change and Health Service Tasks should appear under State Actions.
7. Select "Show Running Rules and Monitors for this Health Service" and run it.
8. You can also run "Show Failed Rules and Monitors for this Health Service"

The output will look something like this (exact formating is not persisted, but the data should be about right): 

   Show Running Rules and Monitors for this Health Service Task Description
Status: Succeeded
Scheduled Time: 2/5/2007 11:52:25 AM
Start Time: 2/5/2007 11:52:28 AM
Submitted By:
Run As:
Run Location:
Target:
Target Type: Health Service
Category: Maintenance
Task Output:
< DataItem type =" WorkflowsReport " time =" 2007-02-05T11:52:29.2045781-08:00 " sourceHealthServiceId =" 00000000-0000-0000-0000-000000000000 " >
  < Status > Running </ Status >
  < Count > 151 </ Count >
< Details >
< Instance Id =" {0914A006-3C72-0E16-1B17-C542E1C6953E} " >
  < Workflow > Microsoft.Windows.Server.InstanceGroup.Discovery </ Workflow >
  </ Instance >
< Instance Id =" {099BFE0F-FDDB-8D5A-67AF-A79317EB6E91} " >
  < Workflow > Microsoft.SystemCenter.PopulateManagementServerComputerGroup </ Workflow >
  < Workflow > Microsoft.SystemCenter.ComputerGroup.AvailabilityRollup </ Workflow >
  < Workflow > Microsoft.SystemCenter.ComputerGroup.PerformanceRollup </ Workflow >
  < Workflow > Microsoft.SystemCenter.ComputerGroup.ConfigurationRollup </ Workflow >
  < Workflow > Microsoft.SystemCenter.ComputerGroup.SecurityRollup </ Workflow >
  </ Instance >
  </ Details >
  </ DataItem >

The Instance Id in the xml is the Id of the monitoring object that the rule/monitor is running for. The name in the Workflow node is the name of the rule/monitor as defined in the management pack. This is not the same as the display name show in the UI.

Comments