Sha256: f900037fc1484c5db539387675811c66dfa418d1340032ebefe08734029bcc79

Contents?: true

Size: 528 Bytes

Versions: 7

Compression:

Stored size: 528 Bytes

Contents

# -*- ruby -*-
#encoding: utf-8

require 'arborist/monitor'
require 'arborist/monitor/socket'

using Arborist::TimeRefinements

Arborist::Monitor 'port checks on all tcp services' do
	every 5.seconds
	match type: 'service', protocol: 'tcp'
	use :addresses, :port
	exec( Arborist::Monitor::Socket::TCP )
end

Arborist::Monitor 'port checks on downed tcp services' do
	every 10.seconds
	match type: 'service', protocol: 'tcp', status: 'down'
	include_down true
	use :addresses, :port
	exec( Arborist::Monitor::Socket::TCP )
end


Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
arborist-0.2.0.pre20170519125456 spec/data/monitors/port_checks.rb
arborist-0.1.0 spec/data/monitors/port_checks.rb
arborist-0.0.1.pre20161005182540 spec/data/monitors/port_checks.rb
arborist-0.0.1.pre20161005112841 spec/data/monitors/port_checks.rb
arborist-0.0.1.pre20160829140603 spec/data/monitors/port_checks.rb
arborist-0.0.1.pre20160606141735 spec/data/monitors/port_checks.rb
arborist-0.0.1.pre20160128152542 spec/data/monitors/port_checks.rb