|
Last change
on this file since de0bdb0 was
117fcf5,
checked in by Michael Medin <michael@…>, 7 years ago
|
|
* empty log message *
|
-
Property mode set to
100644
|
|
File size:
1.2 KB
|
| Line | |
|---|
| 1 | NSC_WRAPPERS_MAIN(); |
|---|
| 2 | #include <config.h> |
|---|
| 3 | #include <strEx.h> |
|---|
| 4 | #include <utils.h> |
|---|
| 5 | #include <checkHelpers.hpp> |
|---|
| 6 | #include "WMIQuery.h" |
|---|
| 7 | |
|---|
| 8 | class CheckWMI { |
|---|
| 9 | private: |
|---|
| 10 | WMIQuery wmiQuery; |
|---|
| 11 | |
|---|
| 12 | public: |
|---|
| 13 | CheckWMI(); |
|---|
| 14 | virtual ~CheckWMI(); |
|---|
| 15 | // Module calls |
|---|
| 16 | bool loadModule(); |
|---|
| 17 | bool unloadModule(); |
|---|
| 18 | |
|---|
| 19 | std::string getModuleName() { |
|---|
| 20 | return "CheckWMI Various Disk related checks."; |
|---|
| 21 | } |
|---|
| 22 | std::string getModuleDescription() { |
|---|
| 23 | return "CheckWMI can check various file and disk related things.\nThe current version has commands to check Size of hard drives and directories."; |
|---|
| 24 | } |
|---|
| 25 | NSCModuleWrapper::module_version getModuleVersion() { |
|---|
| 26 | NSCModuleWrapper::module_version version = {0, 0, 1 }; |
|---|
| 27 | return version; |
|---|
| 28 | } |
|---|
| 29 | |
|---|
| 30 | bool hasCommandHandler(); |
|---|
| 31 | bool hasMessageHandler(); |
|---|
| 32 | NSCAPI::nagiosReturn handleCommand(const strEx::blindstr command, const unsigned int argLen, char **char_args, std::string &message, std::string &perf); |
|---|
| 33 | |
|---|
| 34 | // Check commands |
|---|
| 35 | NSCAPI::nagiosReturn CheckSimpleWMI(const unsigned int argLen, char **char_args, std::string &message, std::string &perf); |
|---|
| 36 | |
|---|
| 37 | |
|---|
| 38 | private: |
|---|
| 39 | typedef checkHolders::CheckConatiner<checkHolders::MaxMinBoundsDiscSize> PathConatiner; |
|---|
| 40 | typedef checkHolders::CheckConatiner<checkHolders::MaxMinPercentageBoundsDiskSize> DriveConatiner; |
|---|
| 41 | }; |
|---|
Note: See
TracBrowser
for help on using the repository browser.