Class: Deadpool::Monitor::GenericNagios
- Defined in:
- lib/deadpool/monitor/generic_nagios.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/generic_nagios.rb', line 14 def primary_ok? check_host(@config[:primary_host]) end |
#secondary_ok? ⇒ Boolean
18 19 20 |
# File 'lib/deadpool/monitor/generic_nagios.rb', line 18 def secondary_ok? check_host(@config[:secondary_host]) end |