source: nscp/modules/CheckEventLog/CheckEventLog.h @ 75d5e70

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

Alot of fixes and some changes (se changelog for details)

  • Property mode set to 100644
File size: 858 bytes
Line 
1NSC_WRAPPERS_MAIN();
2
3#include <strEx.h>
4#include <checkHelpers.hpp>
5#include <filter_framework.hpp>
6
7class CheckEventLog {
8private:
9
10public:
11        CheckEventLog();
12        virtual ~CheckEventLog();
13        // Module calls
14        bool loadModule();
15        bool unloadModule();
16
17        std::string getModuleName() {
18                return "Event log Checker.";
19        }
20        NSCModuleWrapper::module_version getModuleVersion() {
21                NSCModuleWrapper::module_version version = {0, 0, 1 };
22                return version;
23        }
24        std::string getModuleDescription() {
25                return "Check for errors and warnings in the event log.\nThis is only supported through NRPE so if you plan to use only NSClient this wont help you at all.";
26        }
27
28
29        bool hasCommandHandler();
30        bool hasMessageHandler();
31        NSCAPI::nagiosReturn handleCommand(const strEx::blindstr command, const unsigned int argLen, char **char_args, std::string &message, std::string &perf);
32};
Note: See TracBrowser for help on using the repository browser.