Module: check_mk
Branch: master
Commit: b6503c94042db48fe4a16f55414f217755d2e167
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b6503c94042db4…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Aug 15 12:44:45 2011 +0200
FIX: debug mode of windows agent working again
---
.bugs/187 | 10 +++++++---
agents/windows/check_mk_agent.cc | 9 ++++-----
agents/windows/check_mk_agent.exe | Bin 96768 -> 96768 bytes
3 files changed, 11 insertions(+), 8 deletions(-)
diff --git a/.bugs/187 b/.bugs/187
index 627f71a..996dd24 100644
--- a/.bugs/187
+++ b/.bugs/187
@@ -1,11 +1,15 @@
Title: Windows Agent Debug Modus funktiert nicht
Component: core
+State: done
+Class: bug
+Date: 2011-06-30 11:46:51
Benefit: 1
-State: open
Cost: 3
-Date: 2011-06-30 11:46:51
-Class: bug
+Fun: 0
Auf einem Windows 2000 SP4 System getestet:
Der Debug-Modus liefert keine Ausgabe.
+
+2011-08-15 12:44:27: changed state open -> done
+Geht jetzt wieder.
diff --git a/agents/windows/check_mk_agent.cc b/agents/windows/check_mk_agent.cc
index ecef22c..a8ccabc 100755
--- a/agents/windows/check_mk_agent.cc
+++ b/agents/windows/check_mk_agent.cc
@@ -1263,7 +1263,7 @@ void listen_tcp_loop()
SOCKET connection;
// Loop for ever.
- debug("Die Schleife gestartet.");
+ debug("Starting main loop.");
while (!should_terminate)
{
// Das Dreckswindows kann nicht vernuenftig gleichzeitig auf
@@ -1488,11 +1488,10 @@ void do_debug()
{
verbose_mode = true;
do_tcp = false;
- logwatch_send_initial_entries = true;
- logwatch_suppress_info = false;
+ // logwatch_send_initial_entries = true;
+ // logwatch_suppress_info = false;
SOCKET dummy;
- find_eventlogs(dummy);
- //section_eventlog(dummy);
+ output_data(dummy);
}
void do_adhoc()
diff --git a/agents/windows/check_mk_agent.exe b/agents/windows/check_mk_agent.exe
index fff041c..edf623a 100755
Binary files a/agents/windows/check_mk_agent.exe and b/agents/windows/check_mk_agent.exe
differ