Chapter 09/circuit-oneops-1-master/components/cookbooks/diagnostic_cache/files/default/couchbase_monitor.rb
#Close tcp sockets to all graphite servers
Close tcp sockets to all graphite servers
Close tcp sockets to all graphite servers
def close_tcp_sockets()
    logger.info "close_tcp_sockets:start: tcp sockets list = #{@tcp_sockets}"
    if (@tcp_sockets.length > 0)
      @tcp_sockets.each do |tcp_socket|
        begin
          tcp_socket.close
        rescue Exception => e
          logger.error "close_tcp_sockets:exception: #{e}"
        end
      end
    end
    logger.info 'close_tcp_sockets:end: Completed'
  end
def close_tcp_sockets ( ) logger . info "close_tcp_sockets:start: tcp sockets list = #{@tcp_sockets}" if ( @tcp_sockets . length > 0 ) @tcp_sockets . each do | tcp_socket | begin tcp_socket . close rescue Exception => e logger . error "close_tcp_sockets:exception: #{e}" end end end logger . info 'close_tcp_sockets:end: Completed' end
Close tcp sockets to all graphite servers
Close tcp sockets to all graphite servers