Module: check_mk
Branch: master
Commit: 62539435ae22852aa12c4ab8007f90ad9b26445b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=62539435ae2285…
Author: Sebastian Herbord <sh(a)mathias-kettner.de>
Date: Tue Mar 22 14:19:25 2016 +0100
3106 windows agent: added support for new eventlog types introduced with windows vista /
server 2008
The new eventlogs introduced in windows vista / windows server 2008 can only be accessed
through a
new api introduced in that same version.
To allow this agent to work with older windows versions, the api used can be toggled
through the
configuration file and, for compatibilty, defaults to the old style.
To enable the new api, set "vista_api = yes" in the logwatch section.
This only changes the api, it doesn't automatically enable additional logs (there
could be
hundreds).
Instead you can manually activate the new-style logs with a line like this (again in the
logwatch
section):
"logname Microsoft-Windows-GroupPolicy/Operational = warn"
The correct name to use for the logs can be found in windows through the Properties-Window
of a log.
---
.werks/3106 | 19 +
ChangeLog | 1 +
agents/windows/Configuration.cc | 11 +-
agents/windows/Configuration.h | 4 +
agents/windows/EventLog.cc | 300 +++++++++++++---
agents/windows/EventLog.h | 24 +-
agents/windows/EventLogVista.cc | 409 ++++++++++++++++++++++
agents/windows/EventLogVista.h | 79 +++++
agents/windows/IEventLog.cc | 40 +++
agents/windows/IEventLog.h | 97 +++++
agents/windows/Makefile | 2 +-
agents/windows/build_version | 2 +-
agents/windows/check_mk.example.ini | 14 +
agents/windows/check_mk_agent-64.exe | Bin 910336 -> 1003008 bytes
agents/windows/check_mk_agent-64.unversioned.exe | Bin 910336 -> 1003008 bytes
agents/windows/check_mk_agent.cc | 343 +++++-------------
agents/windows/check_mk_agent.exe | Bin 836096 -> 891392 bytes
agents/windows/check_mk_agent.msi | Bin 2007040 -> 2156544 bytes
agents/windows/check_mk_agent.unversioned.exe | Bin 836096 -> 891392 bytes
agents/windows/dynamic_func.h | 57 +++
agents/windows/install_agent-64.exe | Bin 418513 -> 439059 bytes
agents/windows/install_agent.exe | Bin 408949 -> 424770 bytes
agents/windows/types.h | 17 +-
23 files changed, 1090 insertions(+), 329 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=62539435ae…