Classes | Functions | Variables
diagnostic_common_diagnostics::hd_monitor Namespace Reference

Classes

class  hd_monitor

Functions

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

Variables

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

Function Documentation

def diagnostic_common_diagnostics.hd_monitor.get_hddtemp_data (   hostname = 'localhost',
  port = 7634 
)

Connects to hddtemp daemon to get temp, HD make.

Definition at line 67 of file hd_monitor.py.

def diagnostic_common_diagnostics.hd_monitor.update_status_stale (   stat,
  last_update_time 
)

Definition at line 109 of file hd_monitor.py.


Variable Documentation

Definition at line 354 of file hd_monitor.py.

Definition at line 55 of file hd_monitor.py.

Definition at line 368 of file hd_monitor.py.

Definition at line 58 of file hd_monitor.py.

Definition at line 57 of file hd_monitor.py.

string diagnostic_common_diagnostics::hd_monitor::help = "Computer name in diagnostics output (ex: 'c1')"

Definition at line 352 of file hd_monitor.py.

Definition at line 357 of file hd_monitor.py.

Todo:
Need to check HD input/output too using iostat

Definition at line 347 of file hd_monitor.py.

tuple diagnostic_common_diagnostics::hd_monitor::hostname_clean = string.translate(hostname, string.maketrans('-','_'))

Definition at line 361 of file hd_monitor.py.

Definition at line 54 of file hd_monitor.py.

Definition at line 353 of file hd_monitor.py.

tuple diagnostic_common_diagnostics::hd_monitor::parser = optparse.OptionParser(usage="usage: hd_monitor.py [--diag-hostname=cX]")

Definition at line 350 of file hd_monitor.py.

Definition at line 369 of file hd_monitor.py.

Definition at line 64 of file hd_monitor.py.

dictionary diagnostic_common_diagnostics::hd_monitor::stat_dict = { 0: 'OK', 1: 'Warning', 2: 'Error' }

Definition at line 60 of file hd_monitor.py.

dictionary diagnostic_common_diagnostics::hd_monitor::temp_dict = { 0: 'OK', 1: 'Hot', 2: 'Critical Hot' }

Definition at line 61 of file hd_monitor.py.

dictionary diagnostic_common_diagnostics::hd_monitor::usage_dict = { 0: 'OK', 1: 'Low Disk Space', 2: 'Very Low Disk Space' }

Definition at line 62 of file hd_monitor.py.



diagnostic_common_diagnostics
Author(s): Brice Rebsamen
autogenerated on Tue Mar 26 2019 03:09:46