Changeset 3f569d3 in nscp
- Timestamp:
- 11/26/07 21:45:47 (5 years ago)
- Branches:
- master, 0.4.0, 0.4.1, 0.4.2, stable
- Children:
- 978bd31
- Parents:
- a60995a
- Files:
-
- 22 edited
-
AutoBuild.h (modified) (1 diff)
-
NSClient++-2005.sln (modified) (7 diffs)
-
NSClient++-2005.vcproj (modified) (10 diffs)
-
NSClient++.manifest (modified) (1 diff)
-
changelog (modified) (4 diffs)
-
include/SSLSocket.cpp (modified) (2 diffs)
-
include/ServiceCmd.cpp (modified) (2 diffs)
-
include/Socket.cpp (modified) (1 diff)
-
include/arrayBuffer.cpp (modified) (3 diffs)
-
modules/CheckDisk/CheckDisk-2005.vcproj (modified) (2 diffs)
-
modules/CheckEventLog/CheckEventLog-2005.vcproj (modified) (2 diffs)
-
modules/CheckEventLog/CheckEventLog.cpp (modified) (2 diffs)
-
modules/CheckHelpers/CheckHelpers-2005.vcproj (modified) (2 diffs)
-
modules/CheckSystem/CheckSystem-2005.vcproj (modified) (2 diffs)
-
modules/CheckWMI/CheckWMI-2005.vcproj (modified) (2 diffs)
-
modules/FileLogger/FileLogger-2005.vcproj (modified) (2 diffs)
-
modules/NRPEListener/NRPEListener-2005.vcproj (modified) (2 diffs)
-
modules/NRPEListener/NRPEListener.cpp (modified) (1 diff)
-
modules/NSClientListener/NSClientListener-2005.vcproj (modified) (2 diffs)
-
modules/NSClientListener/NSClientListener.cpp (modified) (3 diffs)
-
modules/RemoteConfiguration/RemoteConfiguration-2005.vcproj (modified) (2 diffs)
-
modules/SysTray/SysTray-2005.vcproj (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
AutoBuild.h
r7e33d82 r3f569d3 3 3 // change the FALSE to TRUE for autoincrement of build number 4 4 #define INCREMENT_VERSION TRUE 5 #define FILEVER 0,2,7,9 66 #define PRODUCTVER 0,2,7,19 47 #define STRFILEVER _T("0.2.7.9 6")8 #define STRPRODUCTVER _T("0.2.7.19 4")9 #define STRPRODUCTDATE _T("2007-11-2 4")5 #define FILEVER 0,2,7,99 6 #define PRODUCTVER 0,2,7,197 7 #define STRFILEVER _T("0.2.7.99") 8 #define STRPRODUCTVER _T("0.2.7.197") 9 #define STRPRODUCTDATE _T("2007-11-26") 10 10 #endif // AUTOBUILD_H -
NSClient++-2005.sln
r7e33d82 r3f569d3 175 175 {62B685D7-3A2E-4F3E-B2B8-B17F20C0217F}.Release|Mixed Platforms.Build.0 = Release|x64 176 176 {62B685D7-3A2E-4F3E-B2B8-B17F20C0217F}.Release|Win32.ActiveCfg = Release|Win32 177 {62B685D7-3A2E-4F3E-B2B8-B17F20C0217F}.Release|Win32.Build.0 = Release|Win32 177 178 {62B685D7-3A2E-4F3E-B2B8-B17F20C0217F}.Release|x64.ActiveCfg = Release|Win32 178 179 {BA246C01-063A-4548-8957-32D5CC76171B}.Debug|Any CPU.ActiveCfg = Debug|x64 … … 211 212 {BA246C01-063A-4548-8957-32D5CC76171B}.Release|Mixed Platforms.Build.0 = Release|x64 212 213 {BA246C01-063A-4548-8957-32D5CC76171B}.Release|Win32.ActiveCfg = Release|Win32 214 {BA246C01-063A-4548-8957-32D5CC76171B}.Release|Win32.Build.0 = Release|Win32 213 215 {BA246C01-063A-4548-8957-32D5CC76171B}.Release|x64.ActiveCfg = Release|Win32 214 216 {E6E588AB-EFEF-481C-9AF7-DCDCB95CFF45}.Debug|Any CPU.ActiveCfg = Debug|x64 … … 284 286 {2FF60AF6-09AA-49AB-B414-2E8FD01655C6}.Release|Mixed Platforms.Build.0 = Release|x64 285 287 {2FF60AF6-09AA-49AB-B414-2E8FD01655C6}.Release|Win32.ActiveCfg = Release|Win32 288 {2FF60AF6-09AA-49AB-B414-2E8FD01655C6}.Release|Win32.Build.0 = Release|Win32 286 289 {2FF60AF6-09AA-49AB-B414-2E8FD01655C6}.Release|x64.ActiveCfg = Release|Win32 287 290 {08D6246D-1B4A-47A3-965D-296DCC54A4E8}.Debug|Any CPU.ActiveCfg = Debug|x64 … … 320 323 {08D6246D-1B4A-47A3-965D-296DCC54A4E8}.Release|Mixed Platforms.Build.0 = Release|x64 321 324 {08D6246D-1B4A-47A3-965D-296DCC54A4E8}.Release|Win32.ActiveCfg = Release|Win32 325 {08D6246D-1B4A-47A3-965D-296DCC54A4E8}.Release|Win32.Build.0 = Release|Win32 322 326 {08D6246D-1B4A-47A3-965D-296DCC54A4E8}.Release|x64.ActiveCfg = Release|Win32 323 327 {2FCAF54B-AAD3-4F59-895A-8F9CEAFDC65D}.Debug|Any CPU.ActiveCfg = Debug|x64 … … 393 397 {8F1C3E39-D6C6-4414-AAD2-FE03C9A8655F}.Release|Mixed Platforms.Build.0 = Release|x64 394 398 {8F1C3E39-D6C6-4414-AAD2-FE03C9A8655F}.Release|Win32.ActiveCfg = Release|Win32 399 {8F1C3E39-D6C6-4414-AAD2-FE03C9A8655F}.Release|Win32.Build.0 = Release|Win32 395 400 {8F1C3E39-D6C6-4414-AAD2-FE03C9A8655F}.Release|x64.ActiveCfg = Release|Win32 396 401 {05DE66AC-E55C-43B3-849F-7EC695D8B8D0}.Debug|Any CPU.ActiveCfg = Debug|x64 … … 429 434 {05DE66AC-E55C-43B3-849F-7EC695D8B8D0}.Release|Mixed Platforms.Build.0 = Release|x64 430 435 {05DE66AC-E55C-43B3-849F-7EC695D8B8D0}.Release|Win32.ActiveCfg = Release|Win32 436 {05DE66AC-E55C-43B3-849F-7EC695D8B8D0}.Release|Win32.Build.0 = Release|Win32 431 437 {05DE66AC-E55C-43B3-849F-7EC695D8B8D0}.Release|x64.ActiveCfg = Release|Win32 432 438 {626EB00E-A4D2-4B02-9BF4-4C655CA2B7E4}.Debug|Any CPU.ActiveCfg = Debug|x64 … … 467 473 {626EB00E-A4D2-4B02-9BF4-4C655CA2B7E4}.Release|Mixed Platforms.Build.0 = Release|x64 468 474 {626EB00E-A4D2-4B02-9BF4-4C655CA2B7E4}.Release|Win32.ActiveCfg = Release|Win32 475 {626EB00E-A4D2-4B02-9BF4-4C655CA2B7E4}.Release|Win32.Build.0 = Release|Win32 469 476 {626EB00E-A4D2-4B02-9BF4-4C655CA2B7E4}.Release|x64.ActiveCfg = Release|x64 470 477 {626EB00E-A4D2-4B02-9BF4-4C655CA2B7E4}.Release|x64.Build.0 = Release|x64 -
NSClient++-2005.vcproj
r7e33d82 r3f569d3 24 24 <Configuration 25 25 Name="Release|Win32" 26 OutputDirectory="$( ConfigurationName)"27 IntermediateDirectory=" $(ConfigurationName)"26 OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)" 27 IntermediateDirectory="tmp\$(PlatformName)\$(ConfigurationName)" 28 28 ConfigurationType="1" 29 29 InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops" … … 126 126 <Configuration 127 127 Name="Release|x64" 128 OutputDirectory="$( PlatformName)\$(ConfigurationName)"129 IntermediateDirectory=" $(PlatformName)\$(ConfigurationName)"128 OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)" 129 IntermediateDirectory="tmp\$(PlatformName)\$(ConfigurationName)" 130 130 ConfigurationType="1" 131 131 InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops" … … 621 621 Name="Nightly|Win32" 622 622 OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)" 623 IntermediateDirectory=" $(ConfigurationName)"623 IntermediateDirectory="tmp\$(PlatformName)\$(ConfigurationName)" 624 624 ConfigurationType="1" 625 625 InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops" … … 634 634 <Tool 635 635 Name="VCCustomBuildTool" 636 CommandLine="echo Seting up scripts
cmd /c "mkdir "$(TargetDir)\scripts\""
cmd /c "xcopy /Q /Y "$(InputDir)\scripts\*.*" "$(TargetDir)\scripts\""
echo Removing old archive and files we dont want
cmd /c "del "$(TargetDir)\modules\*.lib""
cmd /c "del "$(TargetDir)\modules\*.exp""
cmd /c "del "$(TargetDir)\*.zip""
echo Making archive
7z.exe a -r -tzip -bd "$(TargetDir)\$(ProjectName)-$(PlatformName).zip" "$(TargetDir)\*"
echo Renaming archive
postbuild.pl "$(TargetDir)\$(ProjectName)-$(PlatformName).zip"
echo Sending to server
pscp.exe "$(TargetDir)\*.zip" mickem@ssl.nakednuns.org:/var/www/files/nightly/ "636 CommandLine="echo Seting up scripts
cmd /c "mkdir "$(TargetDir)\scripts\""
cmd /c "xcopy /Q /Y "$(InputDir)\scripts\*.*" "$(TargetDir)\scripts\""
echo Removing old archive and files we dont want
cmd /c "del "$(TargetDir)\modules\*.lib""
cmd /c "del "$(TargetDir)\modules\*.exp""
cmd /c "del "$(TargetDir)\*.zip""
echo Making archive
7z.exe a -r -tzip -bd "$(TargetDir)\$(ProjectName)-$(PlatformName).zip" "$(TargetDir)\*"
echo Renaming archive
postbuild.pl "$(TargetDir)\$(ProjectName)-$(PlatformName).zip"
echo Sending to server
pscp.exe "$(TargetDir)\*.zip" mickem@ssl.nakednuns.org:/var/www/files/nightly/
" 637 637 Outputs="$(TargetDir)\$(ProjectName)-$(PlatformName).zip" 638 638 /> … … 721 721 <Tool 722 722 Name="VCCustomBuildTool" 723 CommandLine="echo Seting up scripts
cmd /c "mkdir "$(TargetDir)\scripts\""
cmd /c "xcopy /Q /Y "$(InputDir)\scripts\*.*" "$(TargetDir)\scripts\""
echo Removing old archive and files we dont want
cmd /c "del "$(TargetDir)\modules\*.lib""
cmd /c "del "$(TargetDir)\modules\*.exp""
cmd /c "del "$(TargetDir)\*.zip""
echo Making archive
7z.exe a -r -tzip -bd "$(TargetDir)\$(ProjectName)-$(PlatformName).zip" "$(TargetDir)\*"
echo Renaming archive
postbuild.pl "$(TargetDir)\$(ProjectName)-$(PlatformName).zip"
echo Sending to server
pscp.exe "$(TargetDir)\*.zip" mickem@ssl.nakednuns.org:/var/www/files/nightly/ "723 CommandLine="echo Seting up scripts
cmd /c "mkdir "$(TargetDir)\scripts\""
cmd /c "xcopy /Q /Y "$(InputDir)\scripts\*.*" "$(TargetDir)\scripts\""
echo Removing old archive and files we dont want
cmd /c "del "$(TargetDir)\modules\*.lib""
cmd /c "del "$(TargetDir)\modules\*.exp""
cmd /c "del "$(TargetDir)\*.zip""
echo Making archive
7z.exe a -r -tzip -bd "$(TargetDir)\$(ProjectName)-$(PlatformName).zip" "$(TargetDir)\*"
echo Renaming archive
postbuild.pl "$(TargetDir)\$(ProjectName)-$(PlatformName).zip"
echo Sending to server
pscp.exe "$(TargetDir)\*.zip" mickem@ssl.nakednuns.org:/var/www/files/nightly/
" 724 724 Outputs="$(TargetDir)\$(ProjectName)-$(PlatformName).zip" 725 725 /> … … 2453 2453 <Tool 2454 2454 Name="VCCustomBuildTool" 2455 CommandLine="echo Copying $(InputFileName)...
cmd /c "copy "$(InputDir)\$(InputName)" "$(InputDir)\Dist\""
" 2455 CommandLine="echo Copying $(InputFileName)...
cmd /c "copy "$(InputDir)\$(InputName)" "$(TargetDir)""
" 2456 Outputs="$(TargetDir)\$(InputFileName)" 2456 2457 /> 2457 2458 </FileConfiguration> … … 2461 2462 <Tool 2462 2463 Name="VCCustomBuildTool" 2463 CommandLine="echo Copying $(InputFileName)...
cmd /c "copy "$(InputDir)\$(InputName)" "$(InputDir)\Dist\""
" 2464 CommandLine="echo Copying $(InputFileName)...
cmd /c "copy "$(InputDir)\$(InputName)" "$(TargetDir)""
" 2465 Outputs="$(TargetDir)\$(InputFileName)" 2464 2466 /> 2465 2467 </FileConfiguration> … … 2878 2880 > 2879 2881 <FileConfiguration 2882 Name="Release|Win32" 2883 > 2884 <Tool 2885 Name="VCCustomBuildTool" 2886 CommandLine="echo Copying $(InputFileName)...
cmd /c "copy "$(InputDir)\$(InputFileName)" "$(TargetDir)\$(InputName).ini""
" 2887 Outputs="$(TargetDir)\$(InputName).ini" 2888 /> 2889 </FileConfiguration> 2890 <FileConfiguration 2891 Name="Release|x64" 2892 > 2893 <Tool 2894 Name="VCCustomBuildTool" 2895 CommandLine="echo Copying $(InputFileName)...
cmd /c "copy "$(InputDir)\$(InputFileName)" "$(TargetDir)\$(InputName).ini""
" 2896 Outputs="$(TargetDir)\$(InputName).ini" 2897 /> 2898 </FileConfiguration> 2899 <FileConfiguration 2880 2900 Name="Distribution|Win32" 2881 2901 > … … 2900 2920 <Tool 2901 2921 Name="VCCustomBuildTool" 2902 CommandLine="echo Copying $(InputFileName)...
cmd /c "copy "$(InputDir)\$(InputFileName)" "$(TargetDir)\$(InputName).ini""
 "2922 CommandLine="echo Copying $(InputFileName)...
cmd /c "copy "$(InputDir)\$(InputFileName)" "$(TargetDir)\$(InputName).ini""

" 2903 2923 Outputs="$(TargetDir)\$(InputName).ini" 2904 2924 /> … … 2909 2929 <Tool 2910 2930 Name="VCCustomBuildTool" 2911 CommandLine="echo Copying $(InputFileName)...
cmd /c "copy "$(InputDir)\$(InputFileName)" "$(TargetDir)\$(InputName).ini""
 "2931 CommandLine="echo Copying $(InputFileName)...
cmd /c "copy "$(InputDir)\$(InputFileName)" "$(TargetDir)\$(InputName).ini""

" 2912 2932 Outputs="$(TargetDir)\$(InputName).ini" 2913 2933 /> -
NSClient++.manifest
r860f310 r3f569d3 1 1 <?xml version="1.0" encoding="UTF-8" standalone="yes"?> 2 2 <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> 3 3 <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2"> 4 <security> 5 <requestedPrivileges> 6 <requestedExecutionLevel level="requireAdministrator"/> 7 </requestedPrivileges> 8 </security> 9 </trustInfo> 4 10 </assembly> -
changelog
r99e4d8f r3f569d3 6 6 * Add API for rehashing the daemon (or implement it the API is there but does nothing) 7 7 8 2007-11-26 MickeM 9 + Fixed a socket issue (erroneously reported "Could not read NSClient packet from socket :(") 10 * More 2k5 build tweaks 11 8 12 2007-11-23 MickeM 9 * Converted to unicode (damn sometimes I **HATE** C++)13 * Converted to Unicode (damn sometimes I **HATE** C++) 10 14 + Added support for escaping " on the /test syntax so now you can do: CheckWMI MaxCrit=3 "MinWarn=1" "Query:load=Select * from win32_Processor" 11 15 … … 15 19 2007-11-21 MickeM 16 20 * Fixed process counter so checkProcState now return the *correct* number (previously it was correct-1) 17 * Fixed som missing exceptions that were not caught21 * Fixed some missing exceptions that were not caught 18 22 + Added "AliasCol" option to CheckWMIValue to allow a column to be used as "alias" for a result set: 19 23 CheckWMIValue -a "Query=select Caption, ThreadCount from Win32_Process" MaxWarn=50 MaxCrit=100 Check:threads=ThreadCount AliasCol=Caption 20 24 will give you: "System threads: 98 > warning, svchost.exe threads: 87 > warning" 21 - Removed documenationfrom SVN (as it is old and outdated and no longer used)25 - Removed from SVN (as it is old and outdated and no longer used) 22 26 23 27 2007-11-20 MickeM … … 28 32 + Added -noboot option to startup used for running command line utilities without booting the client 29 33 "nsclient++ -noboot RemoteConfigruation ini2reg" for instance 30 + Added fall back to try <module> and <module>.dll if the module was nhot loaded (when running command lines)31 * Migrated 2008 project files to new name and back ported to 2005 project files.34 + Added fall back to try <module> and <module>.dll if the module was not loaded (when running command lines) 35 * Migrated 2008 project files to new name and back ported to 2005 project files. 32 36 33 37 2007-11-16 MickeM 34 38 * Fixed an NRPE issue I added when I improved the sockets_timeout (now SSL works as well :). 35 + Added sample VBS script and def enitions39 + Added sample VBS script and definitions 36 40 37 41 2007-11-15 MickeM 38 * Improved error message when external NRPE command fail es.42 * Improved error message when external NRPE command failles. 39 43 40 44 2007-11-14 MickeM … … 42 46 * Improved error handling for external commands 43 47 * Fixed an issue with NRPE/NSClient socket-reading (introduced by the socket_timeout) 44 + Added an english fallback if "local" language PDH counters fail.48 + Added an English fall back if "local" language PDH counters fail. 45 49 46 50 2007-11-12 MickeM -
include/SSLSocket.cpp
r99e4d8f r3f569d3 60 60 if (add) { 61 61 count++; 62 std:: cout << "+++SSSL::Socket" << count << std::endl;62 std::wcout << "+++SSSL::Socket" << count << std::endl; 63 63 } else { 64 64 count--; 65 std:: cout << "---SSSL::Socket" << count << std::endl;65 std::wcout << "---SSSL::Socket" << count << std::endl; 66 66 } 67 67 } … … 79 79 if (n <= 0) { 80 80 int rc = getError(n); 81 if ((rc == SSL_ERROR_WANT_READ) || (rc == SSL_ERROR_WANT_WRITE)) 82 return true; 81 83 report_to->printError(_T(__FILE__), __LINE__, _T("Could not read from socket: ") + strEx::itos(rc)); 82 return (rc == SSL_ERROR_WANT_READ) || (rc == SSL_ERROR_WANT_WRITE);84 throw simpleSocket::SocketException(_T("Could not read from socket: ") + strEx::itos(rc)); 83 85 } 84 return true;86 return n>0; 85 87 } 86 88 void simpleSSL::sSSL::send(const char * buf, unsigned int len) { -
include/ServiceCmd.cpp
r99e4d8f r3f569d3 232 232 // try to stop the service 233 233 if ( ControlService( schService, SERVICE_CONTROL_STOP, &ssStatus ) ) { 234 std:: cout << _T("Stopping service.");234 std::wcout << _T("Stopping service."); 235 235 Sleep( 1000 ); 236 236 while( QueryServiceStatus( schService, &ssStatus ) ) { … … 241 241 break; 242 242 } 243 std:: cout << std::endl;243 std::wcout << std::endl; 244 244 if ( ssStatus.dwCurrentState != SERVICE_STOPPED ) { 245 245 CloseServiceHandle(schService); -
include/Socket.cpp
r99e4d8f r3f569d3 47 47 buffer.append(tmpBuffer, n); 48 48 n=recv(socket_,tmpBuffer,tmpBufferLength,0); 49 50 49 } else { 51 50 // Buffer not full, we got it "all" 52 51 buffer.append(tmpBuffer, n); 53 52 break; 53 54 54 } 55 55 } 56 56 delete [] tmpBuffer; 57 return n!=SOCKET_ERROR; 57 if (n == SOCKET_ERROR) { 58 int ret = ::WSAGetLastError(); 59 if (ret == WSAEWOULDBLOCK) 60 return true; 61 throw SocketException(_T("recv returned SOCKET_ERROR: "), ret); 62 } 63 return n>0; 58 64 } 59 65 -
include/arrayBuffer.cpp
r7e33d82 r3f569d3 144 144 // p1 = start of "this token" 145 145 // p2 = end of "this token" (next split char) 146 std::wcout << _T("found token: ") << p1 << _T(":") << p2;146 //std::wcout << _T("found token: ") << p1 << _T(":") << p2; 147 147 148 148 assert(p2>p1); … … 153 153 token = token.substr(0, token.size()-1); 154 154 155 std::wcout << _T(" -- ") << token << std::endl;155 //std::wcout << _T(" -- ") << token << std::endl; 156 156 157 157 token_list.push_back(token); … … 257 257 */ 258 258 void arrayBuffer::test_createEmptyArrayBuffer() { 259 std:: cout << "arrayBuffer::test_createEmptyArrayBuffer() : ";259 std::wcout << "arrayBuffer::test_createEmptyArrayBuffer() : "; 260 260 unsigned int argLen; 261 261 TCHAR ** c = createEmptyArrayBuffer(argLen); 262 262 if ((c) && (argLen == 0)) 263 std:: cout << "Succeeded" << std::endl;263 std::wcout << "Succeeded" << std::endl; 264 264 else 265 std:: cout << "Failed" << std::endl;265 std::wcout << "Failed" << std::endl; 266 266 destroyArrayBuffer(c, argLen); 267 267 } -
modules/CheckDisk/CheckDisk-2005.vcproj
r7e33d82 r3f569d3 187 187 <Configuration 188 188 Name="Release|Win32" 189 OutputDirectory=" Release"190 IntermediateDirectory=" Release"189 OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)\modules" 190 IntermediateDirectory="$(ConfigurationName)" 191 191 ConfigurationType="2" 192 192 InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops" … … 266 266 <Configuration 267 267 Name="Release|x64" 268 OutputDirectory="$( PlatformName)\$(ConfigurationName)"268 OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)\modules" 269 269 IntermediateDirectory="$(PlatformName)\$(ConfigurationName)" 270 270 ConfigurationType="2" -
modules/CheckEventLog/CheckEventLog-2005.vcproj
r7e33d82 r3f569d3 24 24 <Configuration 25 25 Name="Release|Win32" 26 OutputDirectory="$( ConfigurationName)"26 OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)\modules" 27 27 IntermediateDirectory="$(ConfigurationName)" 28 28 ConfigurationType="2" … … 104 104 <Configuration 105 105 Name="Release|x64" 106 OutputDirectory="$( PlatformName)\$(ConfigurationName)"106 OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)\modules" 107 107 IntermediateDirectory="$(PlatformName)\$(ConfigurationName)" 108 108 ConfigurationType="2" -
modules/CheckEventLog/CheckEventLog.cpp
r99e4d8f r3f569d3 220 220 #define BUFFER_SIZE 1024*64 221 221 NSCAPI::nagiosReturn CheckEventLog::handleCommand(const strEx::blindstr command, const unsigned int argLen, TCHAR **char_args, std::wstring &message, std::wstring &perf) { 222 NSC_DEBUG_MSG_STD(_T("000-1")) ;223 222 if (command != _T("CheckEventLog")) 224 223 return NSCAPI::returnIgnored; … … 299 298 return NSCAPI::returnUNKNOWN; 300 299 } 301 NSC_DEBUG_MSG_STD(_T("001") + message) ;302 300 303 301 unsigned long int hit_count = 0; -
modules/CheckHelpers/CheckHelpers-2005.vcproj
r7e33d82 r3f569d3 187 187 <Configuration 188 188 Name="Release|Win32" 189 OutputDirectory=" Release"190 IntermediateDirectory=" Release"189 OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)\modules" 190 IntermediateDirectory="$(ConfigurationName)" 191 191 ConfigurationType="2" 192 192 InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops" … … 266 266 <Configuration 267 267 Name="Release|x64" 268 OutputDirectory="$( PlatformName)\$(ConfigurationName)"268 OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)\modules" 269 269 IntermediateDirectory="$(PlatformName)\$(ConfigurationName)" 270 270 ConfigurationType="2" -
modules/CheckSystem/CheckSystem-2005.vcproj
r7e33d82 r3f569d3 189 189 <Configuration 190 190 Name="Release|Win32" 191 OutputDirectory="$( ConfigurationName)"191 OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)\modules" 192 192 IntermediateDirectory="$(ConfigurationName)" 193 193 ConfigurationType="2" … … 269 269 <Configuration 270 270 Name="Release|x64" 271 OutputDirectory="$( PlatformName)\$(ConfigurationName)"271 OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)\modules" 272 272 IntermediateDirectory="$(PlatformName)\$(ConfigurationName)" 273 273 ConfigurationType="2" -
modules/CheckWMI/CheckWMI-2005.vcproj
r7e33d82 r3f569d3 191 191 <Configuration 192 192 Name="Release|Win32" 193 OutputDirectory=" Release"194 IntermediateDirectory=" Release"193 OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)\modules" 194 IntermediateDirectory="$(ConfigurationName)" 195 195 ConfigurationType="2" 196 196 InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops" … … 272 272 <Configuration 273 273 Name="Release|x64" 274 OutputDirectory="$( PlatformName)\$(ConfigurationName)"274 OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)\modules" 275 275 IntermediateDirectory="$(PlatformName)\$(ConfigurationName)" 276 276 ConfigurationType="2" -
modules/FileLogger/FileLogger-2005.vcproj
r7e33d82 r3f569d3 24 24 <Configuration 25 25 Name="Release|Win32" 26 OutputDirectory="$( ConfigurationName)"26 OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)\modules" 27 27 IntermediateDirectory="$(ConfigurationName)" 28 28 ConfigurationType="2" … … 103 103 <Configuration 104 104 Name="Release|x64" 105 OutputDirectory="$( PlatformName)\$(ConfigurationName)"105 OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)\modules" 106 106 IntermediateDirectory="$(PlatformName)\$(ConfigurationName)" 107 107 ConfigurationType="2" -
modules/NRPEListener/NRPEListener-2005.vcproj
r7e33d82 r3f569d3 192 192 <Configuration 193 193 Name="Release|Win32" 194 OutputDirectory=" Release"195 IntermediateDirectory=" Release"194 OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)\modules" 195 IntermediateDirectory="$(ConfigurationName)" 196 196 ConfigurationType="2" 197 197 InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops" … … 273 273 <Configuration 274 274 Name="Release|x64" 275 OutputDirectory="$( PlatformName)\$(ConfigurationName)"275 OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)\modules" 276 276 IntermediateDirectory="$(PlatformName)\$(ConfigurationName)" 277 277 ConfigurationType="2" -
modules/NRPEListener/NRPEListener.cpp
r99e4d8f r3f569d3 355 355 int maxWait = socketTimeout_*10; 356 356 for (i=0;i<maxWait;i++) { 357 bool lastReadRet = client->readAll(block, 1048); 357 bool lastReadHasMore = false; 358 try { 359 lastReadHasMore = client->readAll(block, 1048); 360 } catch (simpleSocket::SocketException e) { 361 NSC_LOG_MESSAGE(_T("Could not read NRPE packet from socket :") + e.getMessage()); 362 client->close(); 363 return; 364 } 358 365 if (block.getLength() >= NRPEPacket::getBufferLength()) 359 366 break; 360 if (!lastReadRet) { 361 NSC_LOG_MESSAGE(_T("Could not read NRPE packet from socket :(")); 367 if (!lastReadHasMore) { 362 368 client->close(); 363 369 return; -
modules/NSClientListener/NSClientListener-2005.vcproj
r7e33d82 r3f569d3 189 189 <Configuration 190 190 Name="Release|Win32" 191 OutputDirectory=" Release"192 IntermediateDirectory=" Release"191 OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)\modules" 192 IntermediateDirectory="$(ConfigurationName)" 193 193 ConfigurationType="2" 194 194 InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops" … … 269 269 <Configuration 270 270 Name="Release|x64" 271 OutputDirectory="$( PlatformName)\$(ConfigurationName)"271 OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)\modules" 272 272 IntermediateDirectory="$(PlatformName)\$(ConfigurationName)" 273 273 ConfigurationType="2" -
modules/NSClientListener/NSClientListener.cpp
r99e4d8f r3f569d3 252 252 unsigned int maxWait = socketTimeout_*10; 253 253 for (i=0;i<maxWait;i++) { 254 bool lastReadRet = client->readAll(db); 254 bool lastReadHasMore = false; 255 try { 256 lastReadHasMore = client->readAll(db); 257 } catch (simpleSocket::SocketException e) { 258 NSC_LOG_ERROR_STD(_T("Read on socket failed: ") + e.getMessage()); 259 client->close(); 260 return; 261 } 255 262 if (db.getLength() > 0) { 256 263 unsigned long long pos = db.find('\n'); … … 267 274 sendTheResponse(client, parseRequest(incoming) + "\n"); 268 275 } else { 276 db.nibble(1); 269 277 NSC_LOG_ERROR_STD(_T("First char should (i think) not be a \\n :(")); 270 278 } 271 } else if (!lastReadRet) { 272 NSC_LOG_MESSAGE(_T("Could not read NSClient packet from socket :(")); 279 } else if (!lastReadHasMore) { 273 280 client->close(); 274 281 return; … … 291 298 return; 292 299 } 300 //client->setNonBlock(); 293 301 retrivePacket(client); 294 302 -
modules/RemoteConfiguration/RemoteConfiguration-2005.vcproj
r7e33d82 r3f569d3 187 187 <Configuration 188 188 Name="Release|Win32" 189 OutputDirectory=" Release"190 IntermediateDirectory=" Release"189 OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)\modules" 190 IntermediateDirectory="$(ConfigurationName)" 191 191 ConfigurationType="2" 192 192 InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops" … … 266 266 <Configuration 267 267 Name="Release|x64" 268 OutputDirectory="$( PlatformName)\$(ConfigurationName)"268 OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)\modules" 269 269 IntermediateDirectory="$(PlatformName)\$(ConfigurationName)" 270 270 ConfigurationType="2" -
modules/SysTray/SysTray-2005.vcproj
r7e33d82 r3f569d3 24 24 <Configuration 25 25 Name="Release|Win32" 26 OutputDirectory="$( ConfigurationName)"26 OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)\modules" 27 27 IntermediateDirectory="$(ConfigurationName)" 28 28 ConfigurationType="2" … … 103 103 <Configuration 104 104 Name="Release|x64" 105 OutputDirectory="$( PlatformName)\$(ConfigurationName)"105 OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)\modules" 106 106 IntermediateDirectory="$(PlatformName)\$(ConfigurationName)" 107 107 ConfigurationType="2"
Note: See TracChangeset
for help on using the changeset viewer.








