source: nscp/modules/CheckWMI/CheckWMI.h @ 1b7ae3d

0.4.00.4.10.4.2stable
Last change on this file since 1b7ae3d was 1b7ae3d, checked in by Michael Medin <michael@…>, 7 years ago

* empty log message *

  • Property mode set to 100644
File size: 1.2 KB
RevLine 
[1b7ae3d]1NSC_WRAPPERS_MAIN();
2#include <config.h>
3#include <strEx.h>
4#include <utils.h>
5#include <checkHelpers.hpp>
6#include "WMIQuery.h"
7
8class CheckWMI {
9private:
10        WMIQuery wmiQuery;
11
12public:
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
38private:
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.