Local cached checks are not updated since upgrade to 2.0 (outages are NOT recognized)

Hi

I checked the local plugin and I think I found (perhaps) a solution (to be verified).

I changed line 319 in /opt/omd/sites//lib/python3/cmk/base/plugins/agent_based/local.py

from

    if local_result.cached.elapsed_lifetime_percent > 100:

to

    if local_result.cached.elapsed_lifetime_percent > 200:

and all services seems to be up to date.

For a real fix this should perhaps not use 200% as a threshold but a combination of cache time, scheduled check time and a little bit of time buffer.

e.g. max(cache_time, scheduled check interval) * 1,1