Go to the source code of this file.
Classes | |
class | hd_monitor.hd_monitor |
Namespaces | |
namespace | hd_monitor |
Variables | |
string | hd_monitor.action = "store" |
hd_monitor.default = False) | |
string | hd_monitor.dest = "diag_hostname" |
tuple | hd_monitor.hd_monitor = hd_monitor(hostname, options.diag_hostname, options.directory) |
string | hd_monitor.help = "Computer name in diagnostics output (ex: 'b1' for the base PC, 'h32' for the head PC and so on)" |
tuple | hd_monitor.hostname = socket.gethostname() |
string | hd_monitor.metavar = "DIAG_HOSTNAME" |
tuple | hd_monitor.node_name = ("hd_monitor_"+hostname) |
taking the root directory as the default directory for checking HDD usage | |
tuple | hd_monitor.parser = optparse.OptionParser(usage="usage: hd_monitor.py --diag-hostname=X --directory=/name_of_dir") |
dictionary | hd_monitor.stat_dict = { DiagnosticStatus.OK: 'OK', DiagnosticStatus.WARN: 'Warning', DiagnosticStatus.ERROR: 'Error' } |
dictionary | hd_monitor.usage_dict = { DiagnosticStatus.OK: 'OK', DiagnosticStatus.WARN: 'Low Disk Space', DiagnosticStatus.ERROR: 'Very Low Disk Space' } |