SCOM: Configure a monitor recovery task for a healthy state

During a recent project a client had a small request to create a monitor and run a command when a device was not accessible anymore. Easy right! But (yep there’s always a but) they wanted to run a command when the monitor was returning back to a healthy state to restart a service when the device came back online… Hmmm and all in 1 monitor. So the conditions were as follows: Monitor: Action: Run a PowerShell based monitor to test the connection with the device BAD: Device is down => Run recovery task to remediate GOOD: Device is up again => Run recovery task to restart service (note: Always do this small matrix of a monitor design to exactly know what the customer wants) I don’t have the device to simulate but came up with a small example in my lab to show you how to get this working with just 1 monitor. The situation in my lab is very simple. I want to turn on my...
Read More