Module: check_mk
Branch: master
Commit: 1ba16c69bcc647f3280771807c33919bbf9bb6f6
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1ba16c69bcc647…
Author: Jukka Aro <ja(a)mathias-kettner.de>
Date: Thu Mar 8 10:29:06 2018 +0100
Win-agent: add comment about different statefiles
---
agents/windows/sections/SectionEventlog.cc | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/agents/windows/sections/SectionEventlog.cc
b/agents/windows/sections/SectionEventlog.cc
index c1f88c5..04a646c 100644
--- a/agents/windows/sections/SectionEventlog.cc
+++ b/agents/windows/sections/SectionEventlog.cc
@@ -485,7 +485,10 @@ bool SectionEventlog::produceOutputInner(
handleExistingLog(out, state);
}
}
- // The offsets are persisted in a state file.
+ // The offsets are persisted in a statefile.
+ // Always use the first available statefile name. In case of a TCP/IP
+ // connection, this is the host-IP-specific statefile, and in case of
+ // non-TCP (test / debug run etc.) the general eventstate.txt.
const auto &statefile = statefiles.front();
saveEventlogOffsets(statefile, states);
}