Module: check_mk
Branch: master
Commit: 818b70440a0c5a268135c75d26d9194102cf4428
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=818b70440a0c5a…
Author: Jukka Aro <ja(a)mathias-kettner.de>
Date: Tue Dec 12 14:57:29 2017 +0100
Werk 5251: update section Check_MK output
Give more verbose output upon updater failure in order to cooperate with
the check_mk check.
Change-Id: I53c2eddc2ab5f26fee25355cdd11bcbf6b13ed6a
---
agents/windows/ExternalCmd.cc | 7 +++----
agents/windows/build_version | 2 +-
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/agents/windows/ExternalCmd.cc b/agents/windows/ExternalCmd.cc
index dd9c07e..8838722 100644
--- a/agents/windows/ExternalCmd.cc
+++ b/agents/windows/ExternalCmd.cc
@@ -75,10 +75,9 @@ std::string handleAgentUpdater(Logger *logger, const WinApiAdaptor
&winapi) {
std::string AgentUpdaterError::buildSectionCheckMK(
const std::string &what) const {
- std::ostringstream oss("<<<check_mk>>>\nAgentUpdate: error
",
- std::ios_base::ate);
- oss << what << std::endl;
- return oss.str();
+ return "<<<check_mk>>>\nAgentUpdate: last_check None "
+ "last_update None aghash None error " +
+ what + "\n";
}
ExternalCmd::ExternalCmd(const std::string &cmdline, const Environment &env,
diff --git a/agents/windows/build_version b/agents/windows/build_version
index 8fe9d13..a3d09e3 100644
--- a/agents/windows/build_version
+++ b/agents/windows/build_version
@@ -1 +1 @@
-3018
+3020