Branch: refs/heads/2.1.0
Home:
https://github.com/tribe29/checkmk
Commit: 12f0c1f2a779e1c96a6f435eec083093ff9bde18
https://github.com/tribe29/checkmk/commit/12f0c1f2a779e1c96a6f435eec083093f…
Author: Sergey Kipnis <sergey.kipnis(a)tribe29.com>
Date: 2022-08-07 (Sun, 07 Aug 2022)
Changed paths:
M agents/wnx/src/engine/cma_core.cpp
M agents/wnx/src/engine/cma_core.h
M agents/wnx/watest/test-plugin.cpp
Log Message:
-----------
win-agent: fix retry_count processing
According to the documentation and help
- sync plugin ignores the value
- async plugin will retry execution after timeout/crash up
to `retry_count` times.
- if retry_count is expired, then async plugin data clears
own data
- if cache_age = 0, retry_count is set to 0.
- max retry_count is limited by `(cache_age/timeout)`
NOTE: Relative big CL in attempt to minimize changes, because CL should be ported to
2.0/2.2
Change-Id: Ib6fbed177bff195bd64ff1f6b6b4dd7b8e51e023