MP Authoring Series (For an explanation of this series read this post first.)
Real World Issue: Customer is seeing a lot of Critical alerts for Mirrored Databases in a Disconnected state, but only Warning alerts for Mirrored Databases in Suspended state. In this customer’s environment brief disconnects are common and not necessarily indicative of a Critical issue, whereas a mirrored database in a Suspended state is always Critical for this customer. The customer wants to swap the default states such that Disconnected will now be Warning and Suspended will be Critical.
There are three Mirrored Database Mirror Status Monitors
When we dig into the properties
We see the three states as well as the corresponding Statuses that map to those states.
When we check Overrides we find there is nothing we can override to meet the customer needs:
So to accommodate this request we need to do a little custom authoring in Visual Studio + VSAE.
The process isn’t too complex, however, it is much easier to absorb via video than the many page article that would result if I tried to document the steps by hand:
Once you have your final successful build you will find your files in the bin–Debug folder of your project:
Once you import your custom MP into SCOM you will have a cloned monitor with your modified behavior: