Classes | Namespaces | Functions | Variables
hd_monitor.py File Reference

Go to the source code of this file.

Classes

class  diagnostic_common_diagnostics.hd_monitor.hd_monitor

Namespaces

namespace  diagnostic_common_diagnostics::hd_monitor

Functions

def diagnostic_common_diagnostics::hd_monitor.get_hddtemp_data
 Connects to hddtemp daemon to get temp, HD make.
def diagnostic_common_diagnostics::hd_monitor.update_status_stale

Variables

string diagnostic_common_diagnostics::hd_monitor.action = "store"
int diagnostic_common_diagnostics::hd_monitor.critical_hd_level = 1
tuple diagnostic_common_diagnostics::hd_monitor.hd_monitor = hd_monitor(hostname, options.diag_hostname, home_dir)
int diagnostic_common_diagnostics::hd_monitor.hd_temp_error = 70
int diagnostic_common_diagnostics::hd_monitor.hd_temp_warn = 55
string diagnostic_common_diagnostics::hd_monitor.help = "Computer name in diagnostics output (ex: 'c1')"
string diagnostic_common_diagnostics::hd_monitor.home_dir = ''
tuple diagnostic_common_diagnostics::hd_monitor.hostname = socket.gethostname()
tuple diagnostic_common_diagnostics::hd_monitor.hostname_clean = string.translate(hostname, string.maketrans('-','_'))
int diagnostic_common_diagnostics::hd_monitor.low_hd_level = 5
string diagnostic_common_diagnostics::hd_monitor.metavar = "DIAG_HOSTNAME"
tuple diagnostic_common_diagnostics::hd_monitor.parser = optparse.OptionParser(usage="usage: hd_monitor.py [--diag-hostname=cX]")
tuple diagnostic_common_diagnostics::hd_monitor.rate = rospy.Rate(1.0)
list diagnostic_common_diagnostics::hd_monitor.REMOVABLE = ['/dev/sg1', '/dev/sdb']
dictionary diagnostic_common_diagnostics::hd_monitor.stat_dict = { 0: 'OK', 1: 'Warning', 2: 'Error' }
dictionary diagnostic_common_diagnostics::hd_monitor.temp_dict = { 0: 'OK', 1: 'Hot', 2: 'Critical Hot' }
dictionary diagnostic_common_diagnostics::hd_monitor.usage_dict = { 0: 'OK', 1: 'Low Disk Space', 2: 'Very Low Disk Space' }


diagnostic_common_diagnostics
Author(s): Brice Rebsamen
autogenerated on Mon Aug 14 2017 02:52:26