Classes | Functions | Variables
hd_monitor Namespace Reference

Classes

class  hd_monitor
 

Functions

def get_hddtemp_data (hostname='localhost', port=7634)
 Connects to hddtemp daemon to get temp, HD make. More...
 
def update_status_stale (stat, last_update_time)
 

Variables

 _Thread__stop
 
 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()
 
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/sda']
 
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 hd_monitor.get_hddtemp_data (   hostname = 'localhost',
  port = 7634 
)

Connects to hddtemp daemon to get temp, HD make.

Definition at line 74 of file hd_monitor.py.

◆ update_status_stale()

def hd_monitor.update_status_stale (   stat,
  last_update_time 
)

Definition at line 117 of file hd_monitor.py.

Variable Documentation

◆ _Thread__stop

hd_monitor._Thread__stop
private

Definition at line 58 of file hd_monitor.py.

◆ action

hd_monitor.action

Definition at line 359 of file hd_monitor.py.

◆ args

hd_monitor.args

Definition at line 360 of file hd_monitor.py.

◆ critical_hd_level

int hd_monitor.critical_hd_level = 1

Definition at line 62 of file hd_monitor.py.

◆ default

hd_monitor.default

Definition at line 359 of file hd_monitor.py.

◆ dest

hd_monitor.dest

Definition at line 356 of file hd_monitor.py.

◆ hd_monitor

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

Definition at line 372 of file hd_monitor.py.

◆ hd_temp_error

int hd_monitor.hd_temp_error = 70

Definition at line 65 of file hd_monitor.py.

◆ hd_temp_warn

int hd_monitor.hd_temp_warn = 55

Definition at line 64 of file hd_monitor.py.

◆ help

hd_monitor.help

Definition at line 357 of file hd_monitor.py.

◆ home_dir

hd_monitor.home_dir = ''

Definition at line 362 of file hd_monitor.py.

◆ hostname

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

Definition at line 352 of file hd_monitor.py.

◆ low_hd_level

int hd_monitor.low_hd_level = 5

Definition at line 61 of file hd_monitor.py.

◆ metavar

hd_monitor.metavar

Definition at line 358 of file hd_monitor.py.

◆ options

hd_monitor.options

Definition at line 360 of file hd_monitor.py.

◆ parser

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

Definition at line 355 of file hd_monitor.py.

◆ rate

hd_monitor.rate = rospy.Rate(1.0)

Definition at line 373 of file hd_monitor.py.

◆ REMOVABLE

list hd_monitor.REMOVABLE = ['/dev/sda']

Definition at line 71 of file hd_monitor.py.

◆ stat_dict

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

Definition at line 67 of file hd_monitor.py.

◆ temp_dict

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

Definition at line 68 of file hd_monitor.py.

◆ usage_dict

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

Definition at line 69 of file hd_monitor.py.



pr2_computer_monitor
Author(s): Kevin Watts (watts@willowgarage.com)
autogenerated on Thu Sep 26 2024 02:53:24