Module: DashingContrib::Nagios::Status
Instance Method Summary collapse
Instance Method Details
#fetch(client, options = {}) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/dashing-contrib/bottles/nagios/status.rb', line 6 def fetch(client, = {}) critical = client.service_status(.merge()) warning = client.service_status(.merge()) ok = client.service_status(.merge()) ok.select! { |check| check['status'] == 'OK' } { critical: critical, warning: warning, ok: ok } end |