Class: Deadpool::Monitor::Mysql
- Defined in:
- lib/deadpool/monitor/mysql.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#initialize, #state, #system_check
Constructor Details
This class inherits a constructor from Deadpool::Monitor::Base
Instance Method Details
#primary_ok? ⇒ Boolean
14 15 16 |
# File 'lib/deadpool/monitor/mysql.rb', line 14 def primary_ok? return check_mysql(@config[:primary_host]) end |
#secondary_ok? ⇒ Boolean
18 19 20 21 |
# File 'lib/deadpool/monitor/mysql.rb', line 18 def secondary_ok? return check_mysql(@config[:secondary_host]) # && check_mysql_slave(@config[:secondary_host]) end |