Module: check_mk
Branch: master
Commit: 8e25c2be812291d4e1b993a6243df834adce3791
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8e25c2be812291…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Fri Jan 10 14:58:26 2014 +0100
windows agent: improved crash_log in mrpe section
---
agents/windows/check_mk_agent.cc | 3 +++
agents/windows/check_mk_agent.exe | Bin 153088 -> 153088 bytes
agents/windows/install_agent.exe | Bin 147601 -> 147635 bytes
3 files changed, 3 insertions(+)
diff --git a/agents/windows/check_mk_agent.cc b/agents/windows/check_mk_agent.cc
index af42b99..325837a 100755
--- a/agents/windows/check_mk_agent.cc
+++ b/agents/windows/check_mk_agent.cc
@@ -2497,6 +2497,7 @@ void section_mrpe(SOCKET &out)
{
mrpe_entry *entry = *it_mrpe;
output(out, "(%s) %s ", entry->plugin_name,
entry->service_description);
+ crash_log("(%s) %s ", entry->plugin_name,
entry->service_description);
FILE *f = _popen(entry->command_line, "r");
if (!f) {
@@ -2504,6 +2505,7 @@ void section_mrpe(SOCKET &out)
continue;
}
+ crash_log("Script started -> collecting data");
if (f) {
char buffer[8192];
int bytes = fread(buffer, 1, sizeof(buffer) - 1, f);
@@ -2521,6 +2523,7 @@ void section_mrpe(SOCKET &out)
int nagios_code = status;
output(out, "%d %s\n", nagios_code, plugin_output);
}
+ crash_log("Script finished");
}
}
diff --git a/agents/windows/check_mk_agent.exe b/agents/windows/check_mk_agent.exe
index 5f4da3e..894bfb2 100755
Binary files a/agents/windows/check_mk_agent.exe and b/agents/windows/check_mk_agent.exe
differ
diff --git a/agents/windows/install_agent.exe b/agents/windows/install_agent.exe
index 7ed56ef..ff7f62b 100755
Binary files a/agents/windows/install_agent.exe and b/agents/windows/install_agent.exe
differ