[checkmk-commits] Check_MK Git: check_mk: windows agent: more logging output

git version control git at mathias-kettner.de
Fri Nov 2 12:03:44 CET 2012


Module: check_mk
Branch: master
Commit: 74e568fa7d55d0bd7e5ab1eacab3b147c7749ca7
URL:    http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=74e568fa7d55d0bd7e5ab1eacab3b147c7749ca7

Author: Andreas Boesl <ab at mathias-kettner.de>
Date:   Fri Nov  2 12:03:41 2012 +0100

windows agent: more logging output

---

 agents/windows/check_mk_agent.cc  |    4 ++++
 agents/windows/check_mk_agent.exe |  Bin 109568 -> 109568 bytes
 agents/windows/install_agent.exe  |  Bin 129945 -> 129960 bytes
 3 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/agents/windows/check_mk_agent.cc b/agents/windows/check_mk_agent.cc
index 3d7fc69..53e59c9 100755
--- a/agents/windows/check_mk_agent.cc
+++ b/agents/windows/check_mk_agent.cc
@@ -1427,6 +1427,7 @@ void update_or_create_logwatch_textfile(const char *full_filename, pattern_conta
     logwatch_textfile *textfile;
     if ((textfile = get_logwatch_textfile(full_filename)) != NULL) 
     {
+        printf("File already exists %s\n", full_filename);
         HANDLE hFile = CreateFile(textfile->path,// file to open
                GENERIC_READ,          // open for reading
                FILE_SHARE_READ,       // share for reading
@@ -1459,7 +1460,10 @@ void update_or_create_logwatch_textfile(const char *full_filename, pattern_conta
                 textfile->missing = false; 
             }
             CloseHandle(hFile);
+        } else {
+            printf("Cant open file with CreateFile\n");
         }
+
     }
     else
         add_new_logwatch_textfile(full_filename, patterns); // Add new file
diff --git a/agents/windows/check_mk_agent.exe b/agents/windows/check_mk_agent.exe
index 05bdcf9..8de1f7a 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 e34e830..1c78a11 100755
Binary files a/agents/windows/install_agent.exe and b/agents/windows/install_agent.exe differ



More information about the checkmk-commits mailing list