Class: Zabbirc::Services::Ops

Inherits:
Base
  • Object
show all
Defined in:
lib/zabbirc/services/ops.rb

Constant Summary

Constants inherited from Base

Base::LOOP_SLEEP

Instance Attribute Summary

Attributes inherited from Base

#running

Instance Method Summary collapse

Methods inherited from Base

#initialize, #join, #start, #stop, #synchronize

Constructor Details

This class inherits a constructor from Zabbirc::Services::Base

Instance Method Details

#iterateObject



4
5
6
7
8
9
10
11
# File 'lib/zabbirc/services/ops.rb', line 4

def iterate
  sync_ops
rescue Zabbix::NotConnected => e
  if Zabbix::Connection.up?
    @service.ops.interested.notify e.to_s
    Zabbix::Connection.down!
  end
end