The lack of a native ability to reset the health state of a server without opening Health Explorer, finding the lowest level red (or yellow) and resetting each step upward has really bugged me for a while now. With manual reset monitors and servers where significant changes have occurred, it is not uncommon to need to reset the health state of the entire server to see what will change back into a yellow or red state. There are some great tools out there to reset health state, my personal go-to utility is Green Machine by Tim Helton. Green Machine lets me reset the health of a server or a group of servers via the command line. However in Operations Manager I should be able to take any computer (or group of computers), right-click and reset their health state to green. With Tim’s extremely helpful feedback and insights, the result is the new Green Machine management pack. This management pack lets you reset the health of a server or a group of servers from within the Operations Manager console.

I will say, this is not a pretty management pack however it is a functional management pack – I built it in the Operations Manager console and have not provided the level of documentation that I provided for the ReSearch This Management Pack as an example. If you find this management pack (download available here) to be useful please let me know if it would be worth the investment in time to rebuild it in the authoring console and to fully document it. This management pack is designed to run locally on the the RMS but can be configured to run from any system with the console installed by performing the optional tasks listed in the “How to install the management pack” section of this blog article.

What’s in the management pack?

There are 10 console tasks which are included in the pack – two sets of five (one targeted to computers, one targeted to groups) which perform these tasks:

  • Reset All monitors regardless of state
  • Reset All monitors regardless of state – including rollups which is only available in R2
  • Reset manual reset monitors
  • Reset monitors not currently healthy
  • Reset monitors not currently healthy – including rollups which is only available in R2

How to install the management pack?

Download Green Machine, create a c:\scripts folder on your RMS and copy the GreenMachine.exe into the folder.

Download and install the Green Machine management pack.

Optional: If you want to be able to perform these tasks from other systems with the console installed these steps need to be done:

Copy GreenMachine.exe to c:\scripts on any systems with the console installed.

Change each of the 10 tasks where the parameters says “localhost” to the name of the RMS server in your environment.

  • To find these tasks, open the Operations Manager console / Authoring / Management Pack Objects / Tasks and look for GreenMachine as shown below.

image

Each of these tasks will need to be changed by opening their properties, and on the Parameters field change localhost to the name of your RMS (such as Hydra in my case).

image

 

How to use the management pack?

The Green Machine management pack provides two views which can be used to easily add either a computer or a group into maintenance mode. They are available in the Operations Manager console / Monitoring / Green Machine and either the Computer View or Group View.

image

The Green Machine tasks are also available in the default views which expose either computers or computer groups such as the default computer view shown below:

image

In diagram views (shown below) or even in Live Maps views if computer or group objects are displayed.

image

Issues: In the computers view, selecting multiple computers and running any of the Green Machine tasks will only execute on one item. Based upon this:

Table 7.1 Various Properties of the Task Views

Task View Type Definition

Tasks Available in Operator console Views Types

Multi-select

Alert

Alert

No

Event

Event

No

Computer

Alert

Event

Computer

Attribute

Computer Performance

Performance Data

Diagram

No

Multi-select won’t work from the computer view (http://technet.microsoft.com/en-us/library/cc179959.aspx). While it is unfortunate limitation it can be mitigated somewhat by either filtering the computers requiring Green Machine and running them individually or by using the Computer Group view in the management pack.

Thank you: I owe huge thanks to Tim who not only wrote the Green Machine utility but also helped me work through how we could integrate this into a management pack!

Summary: While there are other options to reset health in Operations Manager (including temporarily putting a computer into maintenance mode) the Green Machine management pack has been a really useful way to integrate health reset functionality into our environment.