Module: check_mk
Branch: master
Commit: a1fb8bc3a01beb2687a1cc90fae85195ba952e87
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a1fb8bc3a01beb…
Author: Jukka Aro <ja(a)mathias-kettner.de>
Date: Thu Mar 1 15:05:42 2018 +0100
Win-agent: read eventlog offsets every time
Until now, Windows agent read the saved eventlog offsets from the state
file only once, upon startup, and used from then on data stored
(cached) in memory. In preparation for storing the offsets per host /
remote IP address, we need to read the offsets from disk every time the
agent is called and not preserve the offsets in memory as way may be
handling different remote hosts across different agent calls.
---
agents/windows/build_version | 2 +-
agents/windows/sections/SectionEventlog.cc | 164 ++++++++++-----------
agents/windows/sections/SectionEventlog.h | 34 ++---
.../windows/test/sections/SectionEventlogTest.cc | 22 +--
4 files changed, 99 insertions(+), 123 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=a1fb8bc3a0…