Changeset 7da80b5 in nscp for trunk/modules/CheckDisk


Ignore:
Timestamp:
05/23/05 21:24:32 (8 years ago)
Author:
Michael Medin <michael@…>
Children:
e93e741
Parents:
3b8eb61
Message:

2005-05-23 MickeM

+ Added obfuscated password support
+ Added some more debug info on commands (returncode, and input args)
+ Added some more comments ot the NSC.ini
+ Added central password "override"
+ Added central "host override"
+ Fixed bug with external commands always getting WARNING state

2005-05-22 MickeM

+ Added debug outout for command
+ Added timestamps for log-to-file (date_mask to configure format)
+ Added support for "no password" with check_nt
+ Added log of bad password on NSClient requests.

  • Some threading issues fixed (I hate threading :)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/CheckDisk/CheckDisk.cpp

    rf896cfb r7da80b5  
    204204      return NSCAPI::returnUNKNOWN; 
    205205    } 
     206    //10597515264&80015491072 
    206207 
    207208    if (bNSClient) { 
    208       message += strEx::itos(totalNumberOfFreeBytes.QuadPart) + "&"; 
    209       message += strEx::itos(totalNumberOfBytes.QuadPart) + "&"; 
     209      if (!message.empty()) 
     210        message += "&"; 
     211      message += strEx::itos(totalNumberOfFreeBytes.QuadPart); 
     212      message += "&"; 
     213      message += strEx::itos(totalNumberOfBytes.QuadPart); 
    210214    } else { 
    211215      std::string tStr; 
     
    236240  if (message.empty()) 
    237241    message = "All drive sizes are within bounds."; 
    238   else 
     242  else if (!bNSClient) 
    239243    message = NSCHelper::translateReturn(returnCode) + ": " + message; 
    240244  return returnCode; 
Note: See TracChangeset for help on using the changeset viewer.