Changeset e26cfe0 in nscp for modules/CheckDisk/CheckDisk.h


Ignore:
Timestamp:
07/11/05 21:55:28 (8 years ago)
Author:
Michael Medin <michael@…>
Branches:
master, 0.4.0, 0.4.1, 0.4.2, stable
Children:
75d5e70
Parents:
6654022
Message:

changes all over manily in the checking code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/CheckDisk/CheckDisk.h

    r1e62ed5 re26cfe0  
    22#include <config.h> 
    33#include <strEx.h> 
     4#include <utils.h> 
     5#include <checkHelpers.hpp> 
    46 
    57class CheckDisk { 
     
    1214  bool loadModule(); 
    1315  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 
    1628  bool hasCommandHandler(); 
    1729  bool hasMessageHandler(); 
     
    2133  NSCAPI::nagiosReturn CheckFileSize(const unsigned int argLen, char **char_args, std::string &message, std::string &perf); 
    2234  NSCAPI::nagiosReturn CheckDriveSize(const unsigned int argLen, char **char_args, std::string &message, std::string &perf); 
     35 
     36 
     37private: 
     38  typedef checkHolders::CheckConatiner<checkHolders::MaxMinBoundsDiscSize> PathConatiner; 
     39  typedef checkHolders::CheckConatiner<checkHolders::MaxMinPercentageBoundsDiskSize> DriveConatiner; 
    2340}; 
Note: See TracChangeset for help on using the changeset viewer.