Skip to content

KeithRochester/Manual-Health-State

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Manual Health State SCOM Management Pack

MP contains an agent task to set the state of the 'Entity Health' monitor of any object. Typically I've used this for making dashboards reflect the true state of the environment and for demo'ing MPs.

Remember: 'Entity Health' is an aggregate monitor. It won't update it's health state unless a child monitor changes health state. If you set it to warning, it won't change state until one of it's children changes state or you set it again.

Set Monitor Health State Task

Targeted at System.Entity has an overridable parameter 'Health State'. Which is the state to set the monitor to. 'Success', 'Warning', or 'Error'. Default is 'Success'. The tasks sets the state of 'Entity Health' (System.Health.EntityState).

Using the Task

Task is targeted at System.Entity and will be available in the tasks pane for all objects in SCOM Set Entity Health Monitor State Task

In my example, before running the task, Health Explorer shows the 'Entity Health' monitor as critical
Alt text

Override the state you want to set the monitor to 'Success', 'Warning', or 'Error'. Alt text

After running the task, Health Explorer shows the 'Entity Health' monitor as warning (the value I overrode the task with).
Alt text