Hello there,

I know this platform is used for questions about SCOM, but I thought it will be nice to also use it to share ideas and scripts that are related to SCOM monitoring.

As a system administrator, I get to work with lots of different software products and servers that each has a different purpose. Also, I need to find a way to monitor these platforms using SCOM.

One of the software products we use in our organization is “System Center Orchestrator”. I always tried to look for a MP that will offer the ability to monitor and catch runbooks jobs failures that occur in Orchestrator, but couldn’t find one…

That led me to the idea of creating a rule monitor using the “Powershell community MP”, that will catch these failures and will raise an alarm for each runbook object that is displayed in SCOM.

It is needless to say that I used another MP that create these Orchestrator runbook objects in SCOM in order to monitor them (Link to this MP).

The monitor is SQL based, and is querying Orchestrator DB in order to find runbook jobs failuers. The script is finding all the runbook jobs failures that happened in the last hour (that can be changed). Then according to the result the script creates a readable description regarding the data that was collected from the DB, and it present it in the alarm description. The information we get is going all the way down to the level of the activity that caused the runbook to fail running.

Anyway, I thought it will be very useful for those who use Orchestrator and wants to have the ability to monitor their runbooks without having to log to the “Runbook Designer” and look for a critical events.

Here is the script for your use:

If there are any questions or issues related to this script, please let me know and I’ll do my best to help.


Alon Tivony answered