Changeset 40970de in nscp for modules/NSCAAgent/NSCAAgent.h
- Timestamp:
- 02/11/10 19:44:30 (3 years ago)
- Branches:
- master, 0.4.0, 0.4.1, 0.4.2
- Children:
- 47bcf6f
- Parents:
- 1d4878e
- File:
-
- 1 edited
-
modules/NSCAAgent/NSCAAgent.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
modules/NSCAAgent/NSCAAgent.h
r5da0459 r40970de 21 21 #pragma once 22 22 23 #include "NSCAThread.h"24 23 #include <CheckMemory.h> 25 24 26 25 NSC_WRAPPERS_MAIN(); 27 NSC_WRAPPERS_CLI();28 26 29 class NSCAAgent {27 class NSCAAgent : public NSCModuleHelper::SimpleNotificationHandler { 30 28 private: 31 CheckMemory memoryChecker;32 int processMethod_;33 // NSCAThreadImpl pdhThread;34 std::list<NSCAThreadImpl*> extra_threads;35 29 36 public: 30 std::string hostname_; 31 std::wstring nscahost_; 32 unsigned int nscaport_; 33 unsigned int payload_length_; 34 bool cacheNscaHost_; 35 std::string password_; 36 int encryption_method_; 37 unsigned int timeout_; 38 int time_delta_; 37 39 38 40 public: … … 66 68 return std::wstring(_T("Passive check support (needs NSCA on nagios server).\nAvalible crypto are: ")) + getCryptos(); 67 69 } 68 69 bool hasCommandHandler(); 70 bool hasMessageHandler(); 71 NSCAPI::nagiosReturn handleCommand(const strEx::blindstr command, const unsigned int argLen, TCHAR **char_args, std::wstring &msg, std::wstring &perf); 72 int commandLineExec(const TCHAR* command, const unsigned int argLen, TCHAR** args); 70 bool hasNotificationHandler() { return true; } 73 71 74 72 std::wstring getCryptos(); 75 73 74 NSCAPI::nagiosReturn handleSimpleNotification(const std::wstring channel, const std::wstring command, NSCAPI::nagiosReturn code, std::wstring msg, std::wstring perf); 75 76 76 77 };
Note: See TracChangeset
for help on using the changeset viewer.








