Classes | Variables
hd_monitor Namespace Reference

Classes

class  hd_monitor

Variables

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

Variable Documentation

string hd_monitor::action = "store"

Definition at line 197 of file hd_monitor.py.

string hd_monitor::default = False)

Definition at line 198 of file hd_monitor.py.

string hd_monitor::dest = "diag_hostname"

Definition at line 194 of file hd_monitor.py.

tuple hd_monitor::hd_monitor = hd_monitor(hostname, options.diag_hostname, options.directory)

Definition at line 217 of file hd_monitor.py.

string hd_monitor::help = "Computer name in diagnostics output (ex: 'b1' for the base PC, 'h32' for the head PC and so on)"

Definition at line 195 of file hd_monitor.py.

tuple hd_monitor::hostname = socket.gethostname()
Todo:
Need to check HD input/output too using iostat

Definition at line 189 of file hd_monitor.py.

string hd_monitor::metavar = "DIAG_HOSTNAME"

Definition at line 196 of file hd_monitor.py.

tuple hd_monitor::node_name = ("hd_monitor_"+hostname)

taking the root directory as the default directory for checking HDD usage

the hostname consists of hiphens, replacing hiphens "-" with underscore "_", in order to have legal node name

Definition at line 211 of file hd_monitor.py.

tuple hd_monitor::parser = optparse.OptionParser(usage="usage: hd_monitor.py --diag-hostname=X --directory=/name_of_dir")

Definition at line 192 of file hd_monitor.py.

dictionary hd_monitor::stat_dict = { DiagnosticStatus.OK: 'OK', DiagnosticStatus.WARN: 'Warning', DiagnosticStatus.ERROR: 'Error' }

Definition at line 27 of file hd_monitor.py.

dictionary hd_monitor::usage_dict = { DiagnosticStatus.OK: 'OK', DiagnosticStatus.WARN: 'Low Disk Space', DiagnosticStatus.ERROR: 'Very Low Disk Space' }

Definition at line 28 of file hd_monitor.py.



cob_monitoring
Author(s): Florian Weisshardt , Felix Messmer
autogenerated on Sun Jun 9 2019 20:20:19