source: nscp/modules/CheckEventLog/CheckEventLog.h @ 99e4d8f

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

2007-11-23 MickeM

  • Converted to unicode (damn sometimes I HATE C++) + Added support for escaping " on the /test syntax so now you can do: CheckWMI MaxCrit=3 "MinWarn=1" "Query:load=Select * from win32_Processor"

2007-11-22 MickeM

  • Fixed so the "default path" is correct even when running as a service (issue: #96)
  • Property mode set to 100644
File size: 2.3 KB
Line 
1/**************************************************************************
2*   Copyright (C) 2004-2007 by Michael Medin <michael@medin.name>         *
3*                                                                         *
4*   This code is part of NSClient++ - http://trac.nakednuns.org/nscp      *
5*                                                                         *
6*   This program is free software; you can redistribute it and/or modify  *
7*   it under the terms of the GNU General Public License as published by  *
8*   the Free Software Foundation; either version 2 of the License, or     *
9*   (at your option) any later version.                                   *
10*                                                                         *
11*   This program is distributed in the hope that it will be useful,       *
12*   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
13*   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
14*   GNU General Public License for more details.                          *
15*                                                                         *
16*   You should have received a copy of the GNU General Public License     *
17*   along with this program; if not, write to the                         *
18*   Free Software Foundation, Inc.,                                       *
19*   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
20***************************************************************************/
21NSC_WRAPPERS_MAIN();
22
23#include <config.h>
24#include <strEx.h>
25#include <utils.h>
26#include <checkHelpers.hpp>
27
28
29class CheckEventLog {
30private:
31
32public:
33        CheckEventLog();
34        virtual ~CheckEventLog();
35        // Module calls
36        bool loadModule();
37        bool unloadModule();
38
39        std::wstring getModuleName() {
40                return _T("Event log Checker.");
41        }
42        NSCModuleWrapper::module_version getModuleVersion() {
43                NSCModuleWrapper::module_version version = {0, 0, 1 };
44                return version;
45        }
46        std::wstring getModuleDescription() {
47                return _T("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.");
48        }
49
50
51        bool hasCommandHandler();
52        bool hasMessageHandler();
53        NSCAPI::nagiosReturn handleCommand(const strEx::blindstr command, const unsigned int argLen, TCHAR **char_args, std::wstring &message, std::wstring &perf);
54};
Note: See TracBrowser for help on using the repository browser.