Is there is any other MP to monitor all windows services using a “Monitor” (not Rule) ?

AdamMohamed-3032 56 Reputation points
2022-12-16T06:31:09.427+00:00

Currently we are monitoring windows services using a "Rule" which needs manual intervention to close the Service alerts in SCOM to avoid that we are looking for a MP to monitor all windows services using a “Monitor” which will close the alert automatically once the service is up.

Please let me know if there is any such MP to make this possible.

Operations Manager
Operations Manager
A family of System Center products that provide infrastructure monitoring, help ensure the predictable performance and availability of vital applications, and offer comprehensive monitoring for datacenters and cloud, both private and public.
1,419 questions
0 comments No comments
{count} votes

Accepted answer
  1. SChalakov 10,266 Reputation points MVP
    2022-12-26T19:02:15.357+00:00

    Hi Adam,

    alright, I know understand what your exact requirement is and I also have a solution for it :)

    What you need to to is the following (it is easy to configure, you just need to follow the exact steps). You need to confisgure the so called Service Wildcard monitoring, which is also based on the windows Service templarte, but has some additional modifications. Here are the exact steps to do this:

    • You need to follow the exact steps from the followiong article (which is actually very detailed and with screenshots), but without the Service Recovery part.

    HOW DO I: CREATE A WILDCARD SCOM SERVICE MONITOR AND RECOVERY
    http://www.opsconfig.com/how-do-i-create-a-wildcard-scom-service-monitor-and-recovery/

    To make it easier for you I have marked where you need to stop:

    274084-image.png

    So you need to follow the article up to the red arrow. The rest of it is regarding configuring service recovery task.

    • The guide describes how you can adjust a SCOM Management Pack (the XML) in order to monitor multiple services, suing a WMI filter. Now comes the important part: When you get to enter the WMI filter, you have to use the following one (not the one from the article):

    SELECT * FROM Win32_Service WHERE StartMode ='Auto'

    This filter will get you all the services with an "Automatic" Startup Type on the servers, which are part of the group, which you have entered, during the template configuration.
    All the other steps from the article (replacing different XML segments) remain the same.

    • After you have edited the MP and saved you, after importing it, you can configure a View and then select the configure Service Monitor as target. Afterwards in the view you will see all the Automatic Services, being monitored with one monitor per service.

    Please ask here if something is not clear, otherwise you just need to read the article and follwo the steps carefully, use the filter I have you and you will have you goal achieved.

    I hope I could help you with that!

    ----------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
    Regards
    Stoyan Chalakov


10 additional answers

Sort by: Most helpful
  1. SChalakov 10,266 Reputation points MVP
    2023-03-07T13:56:15.3833333+00:00

    Hi,

    sorry for the delay, I ways pretty busy the last couple of weeks. There is the same guide, written by Bob Cornelisen (aka SCOM Bob). Please find it here:

    SCOM monitoring multiple services running under one account or similar names

    This should do the job. Please let me know how it goes.

    Thanks,

    Stoyan


  2. SChalakov 10,266 Reputation points MVP
    2023-03-08T08:17:38.38+00:00

    Hi Adam,

    the guide form Bob I shared is the same as the guide from OpsConfig, only withiout the recovery task.

    I assume that the guide from OpsConfig is not available anymore, as I cannmot open the site.

    You can create recovery task like, using another guide, for example this:

    SCOM 2012 – Recovery Task Script For Restarting A Windows Service And Depending Services

    or like this:

    SCOM Basics: Creating a Service Monitor with Automatic Recovery

    Please let me know if thsi helps.

    Regards,

    Stoyan