source: nscp/modules/CheckTaskSched/CheckTaskSched.h @ 9567d4b

0.4.00.4.10.4.2
Last change on this file since 9567d4b was 9567d4b, checked in by Michael Medin <michael@…>, 5 years ago

2008-05-?? MickeM

  • BREAKING CHANGE! -- THe API function NSCLoadPlugin has been changed to take an integer to define the load-status

2008-06-?? MickeM

  • BREAKING CHANGE! -- New settings API as well as new WEBConfiguration UI (nothing is finnished yet but I wanted to check things into the SVN since it is a lot of changes now :)

2008-05-14 MickeM

  • Fixed memoryleak in the service checker.

I am really sorry I usualy write better code then this.

2008-05-11 MickeM

  • BREAKING CHANGE! -- Changed PDH options to a more uniform design:

auto_detect_pdh and dont_use_pdh_index has been removed and instead there is a new method option that takes various values.

  • Property mode set to 100644
File size: 2.9 KB
RevLine 
[367bf20]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();
22NSC_WRAPPERS_CLI();
23
24#include <config.h>
25#include <strEx.h>
26#include <utils.h>
27#include <checkHelpers.hpp>
28#include "TaskSched.h"
29
30class CheckTaskSched {
31private:
32        std::wstring syntax;
33
34public:
35        // Module calls
[9567d4b]36        bool loadModule(NSCAPI::moduleLoadMode mode);
[367bf20]37        bool unloadModule();
38
39        std::wstring getModuleName() {
40                return _T("CheckTaskSched");
41        }
42        std::wstring getModuleDescription() {
43                return _T("CheckTaskSched can check various file and disk related things.\nThe current version has commands to check Size of hard drives and directories.");
44        }
45        NSCModuleWrapper::module_version getModuleVersion() {
46                NSCModuleWrapper::module_version version = {0, 0, 1 };
47                return version;
48        }
49
50        bool hasCommandHandler();
51        bool hasMessageHandler();
52        NSCAPI::nagiosReturn handleCommand(const strEx::blindstr command, const unsigned int argLen, TCHAR **char_args, std::wstring &message, std::wstring &perf);
53        int CheckTaskSched::commandLineExec(const TCHAR* command,const unsigned int argLen,TCHAR** args);
54
55        // Check commands
56        NSCAPI::nagiosReturn TaskSchedule(const unsigned int argLen, TCHAR **char_args, std::wstring &message, std::wstring &perf);
57
58
59
60private:
61        typedef checkHolders::CheckConatiner<checkHolders::MaxMinBoundsDiscSize> PathConatiner;
62        typedef checkHolders::CheckConatiner<checkHolders::MaxMinPercentageBoundsDiskSize> DriveConatiner;
63};
Note: See TracBrowser for help on using the repository browser.