SCOM Linux seed discovery

Laszlo H 66 Reputation points


I would like to monitor Linux services. We have servers which use Ntp or Chrony for time synchronization, but the two services are installed on some of the servers and only one of the two services is activated.

I am using an MP fragment to find out if the service are installed. I have one Discovery for NTP and another for Chrony. It's working fine. But, I would like to monitor only the active service.

I was thinking of setting up two others discovery to determine if the service is enable or not, one for NTP and another for Chrony. But those discoveries should be the children of the discovery that is checking if the service is installed.

Discovery NTP => Discovery NTP is enabled => (if yes) Monitoring of NTP
Discovery Chrony => Discovery Chrony is enabled => (if yes) Monitoring of Chrony

Has anyone ever done something similar and if so how?

Thank you.

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,396 questions
Microsoft System Center
Microsoft System Center
A suite of Microsoft systems management products that offer solutions for managing datacenter resources, private clouds, and client devices.
753 questions
0 comments No comments
{count} votes

Accepted answer
  1. AlexZhu-MSFT 5,236 Reputation points Microsoft Vendor


    For this query, just want to show an alternative way. We may use a two state Shell Command monitor.

    This is the general steps for your reference.

    1, create a two-state monitor, and save it in unsealed MP

    2, name it and select the target

    3, provide the script path that already created in Linux box (the script do the actual work and return the result, for example, either of the 2 services is runing, return 1, otherwise, 0)

    4, configure the criteria (compare the current value with the threshold), unhealty and healty

    5, enable alerting and write the alert description if necessary

    Here's some lab test screenshots







    sample script (to count the file in /tmp and you should replace it with the actual one)


    Hope the above information helps.



    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

0 additional answers

Sort by: Most helpful