Classes | Variables
hd_monitor Namespace Reference

Classes

class  hd_monitor
 

Variables

 action
 
 args
 
 default
 
 dest
 
 hd_monitor = hd_monitor(hostname, options.diag_hostname, options.directory)
 
 help
 
 hostname = socket.gethostname()
 
 metavar
 
tuple node_name = ("hd_monitor_"+hostname).replace("-", "_")
 the hostname consists of hiphens, replacing hiphens "-" with underscore "_", in order to have legal node name More...
 
 options
 taking the root directory as the default directory for checking HDD usage More...
 
 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

hd_monitor.action

Definition at line 208 of file hd_monitor.py.

hd_monitor.args

Definition at line 215 of file hd_monitor.py.

hd_monitor.default

Definition at line 209 of file hd_monitor.py.

hd_monitor.dest

Definition at line 205 of file hd_monitor.py.

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

Definition at line 228 of file hd_monitor.py.

hd_monitor.help

Definition at line 206 of file hd_monitor.py.

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

Definition at line 200 of file hd_monitor.py.

hd_monitor.metavar

Definition at line 207 of file hd_monitor.py.

tuple hd_monitor.node_name = ("hd_monitor_"+hostname).replace("-", "_")

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

Definition at line 222 of file hd_monitor.py.

hd_monitor.options

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

Definition at line 215 of file hd_monitor.py.

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

Definition at line 203 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 Wed Apr 7 2021 03:03:11