Module: check_mk
Branch: master
Commit: 8e2ab46197ca72764975b7652283664a679f0d0b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8e2ab46197ca72…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Tue Feb 21 12:54:43 2017 +0100
4028 Windows Agent: now also sets the environment variable REMOTE for compatibility
reasons
Change-Id: I9c398d16fdd105c128f72fb47f197349f41d3c9e
---
.werks/4028 | 9 +++++++++
agents/windows/build_version | 2 +-
agents/windows/check_mk_agent-64.exe | Bin 1329152 -> 1329664 bytes
agents/windows/check_mk_agent-64.unstripped.exe | Bin 15658018 -> 15658530 bytes
agents/windows/check_mk_agent-64.unversioned.exe | Bin 1329152 -> 1329664 bytes
agents/windows/check_mk_agent.cc | 2 ++
agents/windows/check_mk_agent.exe | Bin 1305600 -> 1305600 bytes
agents/windows/check_mk_agent.msi | Bin 2904576 -> 2905088 bytes
agents/windows/check_mk_agent.unstripped.exe | Bin 13549114 -> 13549114 bytes
agents/windows/check_mk_agent.unversioned.exe | Bin 1305600 -> 1305600 bytes
agents/windows/install_agent-64.exe | Bin 586828 -> 586870 bytes
agents/windows/install_agent.exe | Bin 583891 -> 583912 bytes
12 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/4028 b/.werks/4028
new file mode 100644
index 0000000..02149e0
--- /dev/null
+++ b/.werks/4028
@@ -0,0 +1,9 @@
+Title: Windows Agent: now also sets the environment variable REMOTE for compatibility
reasons
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.5.0i1
+Date: 1487678028
+Class: feature
+
+
diff --git a/agents/windows/build_version b/agents/windows/build_version
index bcf6e41..fe534ad 100644
--- a/agents/windows/build_version
+++ b/agents/windows/build_version
@@ -1 +1 @@
-2541
+2543
diff --git a/agents/windows/check_mk_agent-64.exe b/agents/windows/check_mk_agent-64.exe
index b2ea483..79ab757 100755
Binary files a/agents/windows/check_mk_agent-64.exe and
b/agents/windows/check_mk_agent-64.exe differ
diff --git a/agents/windows/check_mk_agent-64.unstripped.exe
b/agents/windows/check_mk_agent-64.unstripped.exe
index e84b793..cd2401d 100755
Binary files a/agents/windows/check_mk_agent-64.unstripped.exe and
b/agents/windows/check_mk_agent-64.unstripped.exe differ
diff --git a/agents/windows/check_mk_agent-64.unversioned.exe
b/agents/windows/check_mk_agent-64.unversioned.exe
index 3955a4d..8ad627c 100755
Binary files a/agents/windows/check_mk_agent-64.unversioned.exe and
b/agents/windows/check_mk_agent-64.unversioned.exe differ
diff --git a/agents/windows/check_mk_agent.cc b/agents/windows/check_mk_agent.cc
index c745e59..b56b7be 100644
--- a/agents/windows/check_mk_agent.cc
+++ b/agents/windows/check_mk_agent.cc
@@ -622,6 +622,7 @@ DWORD WINAPI realtime_check_func(void *data_in) {
if (current_socket != INVALID_SOCKET) {
// send data
SetEnvironmentVariable("REMOTE_HOST", current_ip.c_str());
+ SetEnvironmentVariable("REMOTE", current_ip.c_str());
char timestamp[11];
snprintf(timestamp, 11, "%" PRIdtime, time(NULL));
@@ -713,6 +714,7 @@ void do_adhoc(const Environment &env) {
}
SetEnvironmentVariable("REMOTE_HOST", ip_hr.c_str());
+ SetEnvironmentVariable("REMOTE", ip_hr.c_str());
try {
output_data(*out, env, false, *g_config->section_flush);
} catch (const std::exception &e) {
diff --git a/agents/windows/check_mk_agent.exe b/agents/windows/check_mk_agent.exe
index ef93271..9723e87 100755
Binary files a/agents/windows/check_mk_agent.exe and b/agents/windows/check_mk_agent.exe
differ
diff --git a/agents/windows/check_mk_agent.msi b/agents/windows/check_mk_agent.msi
index 95b7b00..0b254b8 100755
Binary files a/agents/windows/check_mk_agent.msi and b/agents/windows/check_mk_agent.msi
differ
diff --git a/agents/windows/check_mk_agent.unstripped.exe
b/agents/windows/check_mk_agent.unstripped.exe
index c35ce70..824db74 100755
Binary files a/agents/windows/check_mk_agent.unstripped.exe and
b/agents/windows/check_mk_agent.unstripped.exe differ
diff --git a/agents/windows/check_mk_agent.unversioned.exe
b/agents/windows/check_mk_agent.unversioned.exe
index 11c52f4..6896b17 100755
Binary files a/agents/windows/check_mk_agent.unversioned.exe and
b/agents/windows/check_mk_agent.unversioned.exe differ
diff --git a/agents/windows/install_agent-64.exe b/agents/windows/install_agent-64.exe
index b5289a8..4fdd569 100755
Binary files a/agents/windows/install_agent-64.exe and
b/agents/windows/install_agent-64.exe differ
diff --git a/agents/windows/install_agent.exe b/agents/windows/install_agent.exe
index ffb4e49..962a2c6 100755
Binary files a/agents/windows/install_agent.exe and b/agents/windows/install_agent.exe
differ