source: nscp/modules/CheckHelpers/CheckHelpers.h @ e26cfe0

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

changes all over manily in the checking code

  • Property mode set to 100644
File size: 897 bytes
Line 
1NSC_WRAPPERS_MAIN();
2#include <config.h>
3#include <strEx.h>
4
5class CheckHelpers {
6private:
7
8public:
9        CheckHelpers();
10        virtual ~CheckHelpers();
11        // Module calls
12        bool loadModule();
13        bool unloadModule();
14
15
16        std::string getModuleName() {
17                return "Helper function";
18        }
19        NSCModuleWrapper::module_version getModuleVersion() {
20                NSCModuleWrapper::module_version version = {0, 3, 0 };
21                return version;
22        }
23        std::string getModuleDescription() {
24                return "Various helper function to extend other checks.\nThis is also only supported through NRPE.";
25        }
26
27        bool hasCommandHandler();
28        bool hasMessageHandler();
29        NSCAPI::nagiosReturn handleCommand(const strEx::blindstr command, const unsigned int argLen, char **char_args, std::string &message, std::string &perf);
30
31        // Check commands
32        NSCAPI::nagiosReturn checkMultiple(const unsigned int argLen, char **char_args, std::string &message, std::string &perf);
33};
Note: See TracBrowser for help on using the repository browser.