I’m dealing with a configuration problem for monitoring a specific windows service. This service runs on a PC that has the latest version of the client installed and I would like it to be reported as DOWN in my dashboard if it stops.
I did a series of tests and with the default settings the service always remains in UP status, even if the PC is off (the host status correctly becomes DOWN). I tried creating two rules to try and get the result:
Setup → Service monitoring rules → Normal check interval for service checks. Here I set the Normal check interval for service checks value to 1 minute in the rule and I also added the filter for the host that interests me as well as having indicated the service
Setup → Service monitoring rules → Retry check interval for service checks. Here I set the Retry check interval for service checks value to 1 minute in the rule and I also added the filter for the host that interests me as well as having indicated the service
Despite these configurations, if I turn off the PC, the service is always in UP status.
Technically the system cannot see that the service is not running if the host is down. All the data from this host fetched with the check_mk agent service. If this cannot fetch anything all the other services keep the last state.
The check interval settings has nothing to do with your problem.
Solution.
Create a simple BI where you put inside the “Host state” + “Check_MK” service state + “Service MyServiceName” state.
Select “worst state” as aggregation option. Create an aggregation from this rule and then use “Other integrations” - “BI Aggregations” or “Other services” - “Check State of BI Aggregation” to make a real service from this aggregation. This aggregation service you can show on your dashboard.
I tried to follow your instructions but I can not develop the solution.
Do I have to proceed to create a new view to be linked later in my custom dashboard?
Does your suggestion allow me to extend the setting to other services as well?
It is not so easy to describe what all needs to be done.
At the moment you have your windows host object, the Check_MK service and the Windows service on this host object, correct?
Inside setup you find the menu option “Business Intelligence”, whit this you can create “virtual services” consisting of more than one real service object.
More information can be found here Business Intelligence (BI) -- Reduce complexity with BI
If you create now one virtual service from the host state and booth services, you can transform this virtual service to a real service. Active Check or Data Source Programs for BIs
Thanks to your suggestions I was able to get exactly what I needed. Now I’m experimenting with various forms of BI to have a clearer functioning and I must say that this feature allows me to extend the potential of CheckMK and adapt monitoring to my needs.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.