Changeset 6b690bf in nscp for modules/CheckEventLog


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/CheckEventLog/CheckEventLog.cpp

    r52215d7 r6b690bf  
    4545 
    4646bool CheckEventLog::loadModule() { 
     47  try { 
     48    NSCModuleHelper::registerCommand(_T("CheckEventLog"), _T("Check for errors in the event logger!")); 
     49  } catch (NSCModuleHelper::NSCMHExcpetion &e) { 
     50    NSC_LOG_ERROR_STD(_T("Failed to register command: ") + e.msg_); 
     51  } catch (...) { 
     52    NSC_LOG_ERROR_STD(_T("Failed to register command.")); 
     53  } 
    4754  return true; 
    4855} 
Note: See TracChangeset for help on using the changeset viewer.