I have been tasked with monitoring custom services. I do so in SCOM by creating a monitor, adding service name, targeting Windows Servers and overriding the monitor to a specific server. In case a service(as a part of an application) moves to a different server, or that custom service is installed on several servers, I can easily override the monitor instead of creating a whole new monitor.
The problem with targeting Windows Servers, however, is that all the monitors pop up on every server we have in an “uninitialized” state in SquaredUp.
Another issue is that if the override is set to a server where the service is not present, the service is set to green when it clearly shouldn’t be.
Are there any ways to solve this?
EDIT: I am using SCOM 2012 R2
I have tested several solutions and have found that using the “Windows Service” MP template is sufficient for monitoring the custom services. There is no discernible performance impact and adding a service once is sufficient, as the services are being discovered automatically on all servers.
Pine, you did not mention which SCOM version you are using.
In SCOM 2012 R2, you can add a service to be monitored using the Windows Service template. It will setup a discovery to look for that service name only. This will only show the services as running on servers where it actually exists.
Then you can export the XML and modify it wildcard some services if you have a lot that have a similar name. See these websites for help with that.
Something else to keep in mind is that if you choose to NOT turn on the monitors in the template, it still creates those monitors and rules, but they the enabled is set to “false”. In the XML search for Rule.Enabled.Override and change the values from false to true. Then when you import the MP back into SCOM, you will have performance data (CPU and Mem) for those services that you can display on the dashboard as well.