For the past two years or so I have been talking a lot about how to monitor business services, and most of the time I have done this with Savision Live Maps as a great solution for this. But what about those that haven´t invested in Live Maps? Are they left out of this great way of monitoring? The short answer to this question is no.
When using Live Maps to monitor the services we´re using Distributed Applications which is a big part of SCOM and has been for a long time now. A while ago a colleague of mine, Mats Augustsson came up with a brilliant idea of how to make dynamic Distributed Applications (DA´s) a lot easier (and better). Often when creating DA´s you´re pointing out single objects to include in the service which of course is a great way of doing it, but it doesn´t make it easy to maintain.
This approach that I will show in this post is focusing on how to create dynamic distributed applications solely based on groups and their content. Once you´ve added a group into a DA, it disappears from the console and it seems there is no way of updating it or even seeing it again. However, this is easy to go past and to be able to use it and update it again.
For this first step, I have created four groups that I will use for my DA. I´m still using the concept of three tiers;
- End User
Creating the Distributed Application
Now, create a new DA (under the Authoring tab in the console), give it a name and point out a MP where you want to store it. For this example, I´m storing all groups, monitors and other stuff in the same unsealed MP.
So, let´s see how my groups are behaving. Just as expected, my three groups are gone and are nowhere to be found. So how do we solve this problem?
Once the subgroups are covered, you will be able to see your groups again in the console. Now you can update your groups however you like and add new components. And since these are regular SCOM groups you can use either static rules or you can use the dynamic rules to populate your groups, and by that control what shows up in the DA.
Controlling the rollup behaviour
Now that´s nice, we can see all the included components and their health. But since we´re using groups in this DA, the health of the objects won´t roll up as we want it to by default.
- Additional Performance Rules for Data Warehouse DB Staging Tables row count.
- Additional 2-State performance monitors for Data Warehouse DB Staging Tables row count.
- Additional Monitor: Check if all management servers are on the same patch level
- Additional discovery to replace the built-in “Discovers the list of patches installed on Agents” discovery for health service. This additional discovery also discovers the patch list for OpsMgr management servers, gateway servers and SCSM servers.
- Additional Agent Task: Display patch list (patches for management servers, gateway servers, agents and web console servers).
- Additional Agent Task: Configure Group Health Rollup
- Updated “OpsMgr 2012 Self Maintenance Detect Manually Closed Monitor Alerts Rule” to include an option to reset any manually closed monitor upon detection.
- Additional Rule: “OpsMgr 2012 Self Maintenance Audit Agent Tasks Result Event Collection Rule”
- Additional Management Pack: “OpsMgr Self Maintenance OMS Add-On Management Pack”
For this post I will be using the highlighted feature, “Additional Agent Task: Configure Group Health Rollup” to create the rollup monitors needed for this DA. Close the Diagram view and head back to the group view.
Note: So far this method using the Self Maintenance MP only works in SCOM 2012 and not in SCOM 2016. I will dig into it and try to find out what´s causing the issue when runing the task in SCOM 2016 and update the post.
What we are about to do is to create a rollup monitor, which will control the way our healthy or unhealthy components roll up to affect the DA´s health. For this example I´m using the standard values, this is because I want the worst component of the group to affect the top level of the service. Make your choice and go through with it. This shouldn´t take long but be patient.
After the monitor is saved, repeat this process for the two remaining groups (End User and Infrastructure).
Checking out the result
Now that all the monitors are created we can see that the groups have rolled up their health and we can now start using the DA. You might think that the below picture is really odd with a healthy state but the components show up as critical. This is actually as expected, and the reason for that is because of what´s inside the group.
In the infrastructure group I have added three servers using the class “Windows Computer”. The faulty components on these servers are of a different class (Health Service) and therefore doesn’t affect the state of the Windows Computer object. To create a real error in this DA, I created a new service monitor looking at the print spooler targeting Windows Computer. Once I stopped the Print Spooler service on one of the servers, this rolled up and affected the state of the DA.
IT Service Analytics
To finish off this post I want to show how you can use our tool “IT Service Analytics” to get some nice reports of your service. After the service had been created in SCOM it was automatically synced over to IT Service Analytics (synced once a day) and I was able to see the information you can see below. To be able to see the availability in this view I have created a SLO targeting my DA (read more about that here) stating what service level I´m aiming for.
What you´ve seen here is an easy and in my opinion, a very good way of creating DA´s with just the native SCOM components. It´s really easy to get going but if you are looking at Savision Live Maps, you need to know that it will be even easier to set your services up and to create different SLA´s etc. If you were to move on with Live Maps, the services that you had created with this method could be imported into Live Maps using their “Authoring Console”.
I hope you like what you´ve seen and that it helps you in setting up your business services as this can be a pretty time consuming process to get to know. If you have any comments or questions about what I´ve done, leave a comment below and I´ll get back as soon as possible.