Module: check_mk
Branch: master
Commit: 39d892821190213c005e3c2ca316fb3557e4f351
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=39d89282119021…
Author: Jukka Aro <ja(a)mathias-kettner.de>
Date: Fri Mar 2 12:18:02 2018 +0100
5707 Windows: allow eventlog monitoring from multiple hosts
Until now, Windows eventlogs could be monitored only from one host (Check_MK
site). Attempting to contact one single Windows agent from multiple hosts lead
to lost eventlog entries as all hosts shared one common state file for storing
the offsets of so far read eventlog entries.
Now the offsets are store in host-IP-specific state files, allowing hosts with
different IP addresses to monitor one single Windows system without loosing
eventlog entries. Note: multiple Check_MK sites running under the one and same
IP address will still suffer from lost eventlog entries as the offsets are
stored per IP address.
---
.werks/5707 | 21 ++++++
agents/windows/Makefile.am | 1 +
agents/windows/Section.cc | 11 +--
agents/windows/Section.h | 11 ++-
agents/windows/build_version | 2 +-
agents/windows/check_mk_agent.cc | 29 ++++----
agents/windows/it/remote.py | 4 +-
agents/windows/it/test_section_eventlog.py | 79 ++++++++++++---------
agents/windows/sections/SectionCheckMK.cc | 2 +-
agents/windows/sections/SectionCheckMK.h | 2 +-
agents/windows/sections/SectionDF.cc | 2 +-
agents/windows/sections/SectionDF.h | 2 +-
agents/windows/sections/SectionEventlog.cc | 80 ++++++++++++++++------
agents/windows/sections/SectionEventlog.h | 6 +-
agents/windows/sections/SectionFileinfo.cc | 2 +-
agents/windows/sections/SectionFileinfo.h | 2 +-
agents/windows/sections/SectionGroup.cc | 6 +-
agents/windows/sections/SectionGroup.h | 2 +-
agents/windows/sections/SectionLogwatch.cc | 2 +-
agents/windows/sections/SectionLogwatch.h | 2 +-
agents/windows/sections/SectionMRPE.cc | 2 +-
agents/windows/sections/SectionMRPE.h | 2 +-
agents/windows/sections/SectionMem.cc | 2 +-
agents/windows/sections/SectionMem.h | 2 +-
agents/windows/sections/SectionOHM.cc | 4 +-
agents/windows/sections/SectionOHM.h | 2 +-
agents/windows/sections/SectionPS.cc | 2 +-
agents/windows/sections/SectionPS.h | 2 +-
agents/windows/sections/SectionPerfcounter.cc | 2 +-
agents/windows/sections/SectionPerfcounter.h | 2 +-
agents/windows/sections/SectionPluginGroup.cc | 2 +-
agents/windows/sections/SectionPluginGroup.h | 2 +-
agents/windows/sections/SectionServices.cc | 2 +-
agents/windows/sections/SectionServices.h | 2 +-
agents/windows/sections/SectionSkype.cc | 4 +-
agents/windows/sections/SectionSkype.h | 2 +-
agents/windows/sections/SectionSpool.cc | 2 +-
agents/windows/sections/SectionSpool.h | 2 +-
agents/windows/sections/SectionSystemtime.cc | 2 +-
agents/windows/sections/SectionSystemtime.h | 2 +-
agents/windows/sections/SectionUptime.cc | 2 +-
agents/windows/sections/SectionUptime.h | 2 +-
agents/windows/sections/SectionWMI.cc | 2 +-
agents/windows/sections/SectionWMI.h | 2 +-
agents/windows/sections/SectionWinperf.cc | 2 +-
agents/windows/sections/SectionWinperf.h | 2 +-
agents/windows/test/MockEnvironment.cc | 6 ++
agents/windows/test/MockEnvironment.h | 34 +++++++++
.../windows/test/sections/SectionEventlogTest.cc | 69 ++++++++++++++++---
49 files changed, 304 insertions(+), 129 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=39d8928211…