Changeset e26cfe0 in nscp for modules/CheckDisk/CheckDisk.h
- Timestamp:
- 07/11/05 21:55:28 (8 years ago)
- Branches:
- master, 0.4.0, 0.4.1, 0.4.2, stable
- Children:
- 75d5e70
- Parents:
- 6654022
- File:
-
- 1 edited
-
modules/CheckDisk/CheckDisk.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
modules/CheckDisk/CheckDisk.h
r1e62ed5 re26cfe0 2 2 #include <config.h> 3 3 #include <strEx.h> 4 #include <utils.h> 5 #include <checkHelpers.hpp> 4 6 5 7 class CheckDisk { … … 12 14 bool loadModule(); 13 15 bool unloadModule(); 14 std::string getModuleName(); 15 NSCModuleWrapper::module_version getModuleVersion(); 16 17 std::string getModuleName() { 18 return "CheckDisk Various Disk related checks."; 19 } 20 std::string getModuleDescription() { 21 return "CheckDick can check various file and disk related things.\nThe current version has commands to check Size of hard drives and directories."; 22 } 23 NSCModuleWrapper::module_version getModuleVersion() { 24 NSCModuleWrapper::module_version version = {0, 0, 1 }; 25 return version; 26 } 27 16 28 bool hasCommandHandler(); 17 29 bool hasMessageHandler(); … … 21 33 NSCAPI::nagiosReturn CheckFileSize(const unsigned int argLen, char **char_args, std::string &message, std::string &perf); 22 34 NSCAPI::nagiosReturn CheckDriveSize(const unsigned int argLen, char **char_args, std::string &message, std::string &perf); 35 36 37 private: 38 typedef checkHolders::CheckConatiner<checkHolders::MaxMinBoundsDiscSize> PathConatiner; 39 typedef checkHolders::CheckConatiner<checkHolders::MaxMinPercentageBoundsDiskSize> DriveConatiner; 23 40 };
Note: See TracChangeset
for help on using the changeset viewer.








