Class: ServerMonitor::VDConfiguration

Inherits:
Object
  • Object
show all
Defined in:
lib/servermonitor/megacli_vd_status.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeVDConfiguration

Returns a new instance of VDConfiguration.



8
9
10
11
12
13
14
15
16
17
18
# File 'lib/servermonitor/megacli_vd_status.rb', line 8

def initialize
  @megacli       = "/usr/sbin/megacli"
  @grep          = "/bin/grep"
  @exit_codes    = false
  @email_from    = nil
  @email_to      = nil
  @smtp_address  = nil
  @smtp_port     = nil
  @smtp_username = nil
  @smtp_password = nil
end

Instance Attribute Details

#email_fromObject

Returns the value of attribute email_from.



6
7
8
# File 'lib/servermonitor/megacli_vd_status.rb', line 6

def email_from
  @email_from
end

#email_toObject

Returns the value of attribute email_to.



6
7
8
# File 'lib/servermonitor/megacli_vd_status.rb', line 6

def email_to
  @email_to
end

#exit_codesObject

Returns the value of attribute exit_codes.



6
7
8
# File 'lib/servermonitor/megacli_vd_status.rb', line 6

def exit_codes
  @exit_codes
end

#grepObject

Returns the value of attribute grep.



6
7
8
# File 'lib/servermonitor/megacli_vd_status.rb', line 6

def grep
  @grep
end

#megacliObject

Returns the value of attribute megacli.



6
7
8
# File 'lib/servermonitor/megacli_vd_status.rb', line 6

def megacli
  @megacli
end

#smtp_addressObject

Returns the value of attribute smtp_address.



6
7
8
# File 'lib/servermonitor/megacli_vd_status.rb', line 6

def smtp_address
  @smtp_address
end

#smtp_passwordObject

Returns the value of attribute smtp_password.



6
7
8
# File 'lib/servermonitor/megacli_vd_status.rb', line 6

def smtp_password
  @smtp_password
end

#smtp_portObject

Returns the value of attribute smtp_port.



6
7
8
# File 'lib/servermonitor/megacli_vd_status.rb', line 6

def smtp_port
  @smtp_port
end

#smtp_usernameObject

Returns the value of attribute smtp_username.



6
7
8
# File 'lib/servermonitor/megacli_vd_status.rb', line 6

def smtp_username
  @smtp_username
end