Examples of OS service monitoring best practices

Hi @Mizső,

I have multiple use cases for OS service monitoring, especially for Windows OS, and one of the important use cases is related to the MSSQL service monitoring on multiple servers, which in my case should be up and running all the time.

so I have configured it for the MSSQL services with the alerting condition if the service status is not in a running state same as the following screenshot

also, I have added all configured OS services in a dashboard using the below query in Data Explorer with Honeycomb and enabled show labels to get the availability percentage, hostname, and service name.

Note: you can change the status based on the configured status in your case

(builtin:osservice.availability:filter(prefix(“dt.entity.os:service”,CUSTOM_DEVICE-)):filter(or(eq(“dt.osservice.status”,running),eq(“dt.osservice.status”,active))):sum:auto:sort(value(sum,descending)):splitBy(“dt.entity.host”,“dt.entity.os:service”)/builtin:osservice.availability:filter(prefix(“dt.entity.os:service”,CUSTOM_DEVICE-)):sum:auto:sort(value(sum, descending)):splitBy(“dt.entity.host”,“dt.entity.os:service”)*100):setUnit(Percent):splitBy(“dt.entity.host”,“dt.entity.os:service”):sort(value(auto,ascending)):limit(100)

Best regards,

Mohamed