CheckMK - Grafana - Process Discovery

Let me get this straight:

  • You are using Grafana to visualize data from your checkmk instance
  • You have process checks, that measure if a process is running or not
  • When visualizing the state of those checks everything works as expected when the process is running but you get errors in Grafana when that process is not running

Correct so far?

You probably have the following situation: When the process is running, you get OK. When it is not running you will get an UNKN, as there is no information on the process. That is how this check works. I am not about enforcing the check, that might give you OK and CRIT states.
If this sounds right, mybe you want to try and check the Windows service instead of the process. That way you will always have a defined state.

Apart from that we would need to see your Grafana query on that measurement. Maybe that query is somehow flawed.