Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: dff51d593258d6602cf6c68b4cfa996f4107d525
https://github.com/tribe29/checkmk/commit/dff51d593258d6602cf6c68b4cfa996f4…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2020-10-18 (Sun, 18 Oct 2020)
Changed paths:
M cmk/base/discovery.py
M cmk/fetchers/snmp.py
M cmk/fetchers/type_defs.py
M tests/unit/cmk/fetchers/test_fetchers.py
Log Message:
-----------
Fix slow service discovery page of SNMP hosts
Since 6c2961ce88e the SNMP fetcher cache was completely disabled when
fetching for service discovery. This is totally fine for all call sites,
except one: The service discovery page calls the automation
"try-inventory" with the "@noscan" option, e.g. on initial page
rendering.
In this situation all available caches should be used to make the page
render as fast as possible. This exception is now expressed in a special
fetcher mode called "CACHED_DISCOVERY".
CMK-5908
Change-Id: Id97c042006e3c25a388258a072f01d0e7701aefc