Sha256: debeb8d6be16c1175ea94b69ab68e8eeae14ea3f54aed59cb99f8e8a83ec911b

Contents?: true

Size: 270 Bytes

Versions: 51

Compression:

Stored size: 270 Bytes

Contents

default[:file] = '/notexists'

collect do
  event(
      :service => "#{name} #{plugin.file}",
      :metric => (unixnow - File.stat(plugin.file).mtime.to_i).abs.to_f/60,
      :description => "File #{plugin.file} age",
      :warning => 1,
      :critical => 5
  )
end

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
kurchatov-0.4.7 examples/file_age.rb
kurchatov-0.4.6 examples/file_age.rb
kurchatov-0.4.5 examples/file_age.rb
kurchatov-0.4.4 examples/file_age.rb
kurchatov-0.4.3 examples/file_age.rb
kurchatov-0.4.2 examples/file_age.rb
kurchatov-0.4.1 examples/file_age.rb
kurchatov-0.3.8 examples/file_age.rb
kurchatov-0.3.7 examples/file_age.rb
kurchatov-0.3.6 examples/file_age.rb
kurchatov-0.3.5 examples/file_age.rb
kurchatov-0.3.4 examples/file_age.rb
kurchatov-0.3.3 examples/file_age.rb
kurchatov-0.3.2 examples/file_age.rb
kurchatov-0.3.1 examples/file_age.rb
kurchatov-0.3.0 examples/file_age.rb
kurchatov-0.2.9 examples/file_age.rb
kurchatov-0.2.8 examples/file_age.rb
kurchatov-0.2.7 examples/file_age.rb
kurchatov-0.2.6 examples/file_age.rb