0.4.00.4.10.4.2stable
|
Last change
on this file since 452fd41 was
452fd41,
checked in by Michael Medin <michael@…>, 8 years ago
|
- Changed the Thread class a bit (mutex -> signal, and CreatThread? does not return the instance)
- Moved settings "keys" fro NRPE to config.h
- Changed build options (added Distribution) which builds a zip file under ./dist (requires 7z installed)
- Minor tweaks to error/debug logging and small fixes "here and there"
|
-
Property mode set to
100644
|
|
File size:
762 bytes
|
| Line | |
|---|
| 1 | #pragma once |
|---|
| 2 | #include "PDHCollector.h" |
|---|
| 3 | |
|---|
| 4 | NSC_WRAPPERS_MAIN(); |
|---|
| 5 | |
|---|
| 6 | class NSClientCompat { |
|---|
| 7 | private: |
|---|
| 8 | PDHCollectorThread pdhThread; |
|---|
| 9 | |
|---|
| 10 | public: |
|---|
| 11 | typedef struct rB { |
|---|
| 12 | NSCAPI::nagiosReturn code_; |
|---|
| 13 | std::string msg_; |
|---|
| 14 | std::string perf_; |
|---|
| 15 | rB(NSCAPI::nagiosReturn code, std::string msg) : code_(code), msg_(msg) {} |
|---|
| 16 | rB() : code_(NSCAPI::returnUNKNOWN) {} |
|---|
| 17 | } returnBundle; |
|---|
| 18 | |
|---|
| 19 | public: |
|---|
| 20 | NSClientCompat(); |
|---|
| 21 | virtual ~NSClientCompat(); |
|---|
| 22 | // Module calls |
|---|
| 23 | bool loadModule(); |
|---|
| 24 | bool unloadModule(); |
|---|
| 25 | std::string getModuleName(); |
|---|
| 26 | NSCModuleWrapper::module_version getModuleVersion(); |
|---|
| 27 | bool hasCommandHandler(); |
|---|
| 28 | bool hasMessageHandler(); |
|---|
| 29 | NSCAPI::nagiosReturn handleCommand(const std::string command, const unsigned int argLen, char **char_args, std::string &msg, std::string &perf); |
|---|
| 30 | }; |
|---|
Note: See
TracBrowser
for help on using the repository browser.