1 #ifndef _DISK_SPACE_MONITOR_H 2 #define _DISK_SPACE_MONITOR_H 14 #define CHECK_THRESHOLD 300 // check every 5 minutes 16 #define FAILED_DISK_MONITOR_REPORT_INTERVAL 600 // Interval between loggign failure to stat the filesystem (10 minutes) 27 std::string m_dbPath1;
28 std::string m_dbPath2;
31 unsigned int m_lastCheck;
35 double m_lastPrediction1;
36 double m_lastPrediction2;
Fledge Logger class used to log to syslog.
Definition: logger.h:26
void periodic(int interval)
Called periodically to monitor the disk usage.
Definition: disk_monitor.cpp:48
A class to monitor the free disk space used to store the various storage databases.
Definition: disk_monitor.h:22
DiskSpaceMonitor(const std::string &db1, const std::string &db2)
Construct a disk space monitor class.
Definition: disk_monitor.cpp:36