Changeset 497b779 in nscp for modules/CheckHelpers
- Timestamp:
- 08/19/10 13:36:13 (3 years ago)
- Branches:
- master, 0.4.0, 0.4.1, 0.4.2
- Children:
- de7ec29
- Parents:
- 184d575
- Location:
- modules/CheckHelpers
- Files:
-
- 1 added
- 2 edited
-
CheckHelpers.cpp (modified) (2 diffs)
-
CheckHelpers.h (modified) (2 diffs)
-
module.cmake (added)
Legend:
- Unmodified
- Added
- Removed
-
modules/CheckHelpers/CheckHelpers.cpp
rfe9cc46 r497b779 32 32 } 33 33 34 bool CheckHelpers::loadModule() { 35 return false; 36 } 34 37 35 bool CheckHelpers::loadModule (NSCAPI::moduleLoadMode mode) {38 bool CheckHelpers::loadModuleEx(std::wstring alias, NSCAPI::moduleLoadMode mode) { 36 39 try { 37 40 GET_CORE()->registerCommand(_T("CheckAlwaysOK"), _T("Run another check and regardless of its return code return OK.")); … … 74 77 } 75 78 76 NSCAPI::nagiosReturn CheckHelpers::handleCommand(const st d::wstring command, std::list<std::wstring> arguments, std::wstring &message, std::wstring &perf) {79 NSCAPI::nagiosReturn CheckHelpers::handleCommand(const strEx::wci_string command, std::list<std::wstring> arguments, std::wstring &message, std::wstring &perf) { 77 80 if (command == _T("checkversion")) { 78 81 message = GET_CORE()->getApplicationVersionString(); -
modules/CheckHelpers/CheckHelpers.h
rcad08fb r497b779 30 30 virtual ~CheckHelpers(); 31 31 // Module calls 32 bool loadModule(NSCAPI::moduleLoadMode mode); 32 bool loadModule(); 33 bool loadModuleEx(std::wstring alias, NSCAPI::moduleLoadMode mode); 33 34 bool unloadModule(); 34 35 … … 47 48 bool hasCommandHandler(); 48 49 bool hasMessageHandler(); 49 NSCAPI::nagiosReturn handleCommand(const st d::wstring command, std::list<std::wstring> arguments, std::wstring &message, std::wstring &perf);50 NSCAPI::nagiosReturn handleCommand(const strEx::wci_string command, std::list<std::wstring> arguments, std::wstring &message, std::wstring &perf); 50 51 51 52 // Check commands
Note: See TracChangeset
for help on using the changeset viewer.








