Classes | Functions | Variables
diagnostic_common_diagnostics.hd_monitor Namespace Reference

Classes

class  hd_monitor
 

Functions

def get_hddtemp_data (hostname='localhost', port=7634)
 
def update_status_stale (stat, last_update_time)
 

Variables

 action
 
 args
 
int critical_hd_level = 1
 
 default
 
 dest
 
 hd_monitor = hd_monitor(hostname, options.diag_hostname, home_dir)
 
int hd_temp_error = 70
 
int hd_temp_warn = 55
 
 help
 
string home_dir = ''
 
 hostname = socket.gethostname()
 
 hostname_clean = hostname.translate(hostname.maketrans('-', '_'))
 
int low_hd_level = 5
 
 metavar
 
 options
 
 parser = optparse.OptionParser(usage="usage: hd_monitor.py [--diag-hostname=cX]")
 
 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

◆ get_hddtemp_data()

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

Definition at line 63 of file hd_monitor.py.

◆ update_status_stale()

def diagnostic_common_diagnostics.hd_monitor.update_status_stale (   stat,
  last_update_time 
)

Definition at line 106 of file hd_monitor.py.

Variable Documentation

◆ action

diagnostic_common_diagnostics.hd_monitor.action

Definition at line 343 of file hd_monitor.py.

◆ args

diagnostic_common_diagnostics.hd_monitor.args

Definition at line 344 of file hd_monitor.py.

◆ critical_hd_level

int diagnostic_common_diagnostics.hd_monitor.critical_hd_level = 1

Definition at line 50 of file hd_monitor.py.

◆ default

diagnostic_common_diagnostics.hd_monitor.default

Definition at line 343 of file hd_monitor.py.

◆ dest

diagnostic_common_diagnostics.hd_monitor.dest

Definition at line 340 of file hd_monitor.py.

◆ hd_monitor

Definition at line 357 of file hd_monitor.py.

◆ hd_temp_error

int diagnostic_common_diagnostics.hd_monitor.hd_temp_error = 70

Definition at line 53 of file hd_monitor.py.

◆ hd_temp_warn

int diagnostic_common_diagnostics.hd_monitor.hd_temp_warn = 55

Definition at line 52 of file hd_monitor.py.

◆ help

diagnostic_common_diagnostics.hd_monitor.help

Definition at line 341 of file hd_monitor.py.

◆ home_dir

diagnostic_common_diagnostics.hd_monitor.home_dir = ''

Definition at line 346 of file hd_monitor.py.

◆ hostname

diagnostic_common_diagnostics.hd_monitor.hostname = socket.gethostname()

Definition at line 336 of file hd_monitor.py.

◆ hostname_clean

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

Definition at line 350 of file hd_monitor.py.

◆ low_hd_level

int diagnostic_common_diagnostics.hd_monitor.low_hd_level = 5

Definition at line 49 of file hd_monitor.py.

◆ metavar

diagnostic_common_diagnostics.hd_monitor.metavar

Definition at line 342 of file hd_monitor.py.

◆ options

diagnostic_common_diagnostics.hd_monitor.options

Definition at line 344 of file hd_monitor.py.

◆ parser

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

Definition at line 339 of file hd_monitor.py.

◆ rate

diagnostic_common_diagnostics.hd_monitor.rate = rospy.Rate(1.0)

Definition at line 358 of file hd_monitor.py.

◆ REMOVABLE

list diagnostic_common_diagnostics.hd_monitor.REMOVABLE = ['/dev/sg1', '/dev/sdb']

Definition at line 59 of file hd_monitor.py.

◆ stat_dict

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

Definition at line 55 of file hd_monitor.py.

◆ temp_dict

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

Definition at line 56 of file hd_monitor.py.

◆ usage_dict

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

Definition at line 57 of file hd_monitor.py.



diagnostic_common_diagnostics
Author(s): Brice Rebsamen
autogenerated on Tue Nov 15 2022 03:17:21