Changeset 6b690bf in nscp for modules/CheckDisk


Ignore:
Timestamp:
02/03/08 17:15:14 (5 years ago)
Author:
Michael Medin <michael@…>
Branches:
master, 0.4.0, 0.4.1, 0.4.2, stable
Children:
b5ef837
Parents:
8b206ee
Message:

+ Added API for scripts to register commands

+ Added command descriptions (for some modules)

  • Fixed issue in NRPE that displayed a console window when running commands
  • New improved "inject" dialog from the system tray Lists avalible commands, and shows command descriptions and a lot of other improvments.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/CheckDisk/CheckDisk.cpp

    r978bd31 r6b690bf  
    4040} 
    4141 
    42  
    4342bool CheckDisk::loadModule() { 
     43  try { 
     44    NSCModuleHelper::registerCommand(_T("CheckFileSize"), _T("Check or directory a file and verify its size.")); 
     45    NSCModuleHelper::registerCommand(_T("CheckDriveSize"), _T("Check the size (free-space) of a drive or volume.")); 
     46    NSCModuleHelper::registerCommand(_T("CheckFile"), _T("Check various aspects of a file and/or folder.")); 
     47  } catch (NSCModuleHelper::NSCMHExcpetion &e) { 
     48    NSC_LOG_ERROR_STD(_T("Failed to register command: ") + e.msg_); 
     49  } catch (...) { 
     50    NSC_LOG_ERROR_STD(_T("Failed to register command.")); 
     51  } 
    4452  return true; 
    4553} 
Note: See TracChangeset for help on using the changeset viewer.