Sha256: 39f9d3021ec86065887bc6e94a524cf70a606e18f5c97a3f6a89d32887cd0fea

Contents?: true

Size: 575 Bytes

Versions: 120

Compression:

Stored size: 575 Bytes

Contents

#!/usr/bin/env ruby
#
# Example munin plugin.
# See munin plugin docs http://munin.projects.linpro.no/wiki/Documentation#Plugins
#
# Scripts added to RUBBER_ROOT/script/munin automatically
# get installed as munin plugins by rubber

# remove this line to enable
exit 0

# Print config info need by munin for generating graphs
if ARGV[0] == "config"
  puts 'graph_title Example Stats'
  puts 'graph_vlabel random 1-100'
  puts 'graph_category Examples'
  puts 'graph_scale no'
  puts 'rand.label random'

  exit 0
end

# print graph data values
puts "rand.value #{rand(100)}"

Version data entries

120 entries across 80 versions & 7 rubygems

Version Path
rubber-jcarnegie-0.0.1 lib/generators/vulcanize/templates/munin/script/munin/example_simple.rb
rubber-1.9.1 lib/generators/vulcanize/templates/munin/script/munin/example_simple.rb
rubber-1.9.1 generators/vulcanize/templates/munin/script/munin/example_simple.rb
rubber-1.9.0 generators/vulcanize/templates/munin/script/munin/example_simple.rb
rubber-1.9.0 lib/generators/vulcanize/templates/munin/script/munin/example_simple.rb
rubber-1.8.0 lib/generators/vulcanize/templates/munin/script/munin/example_simple.rb
rubber-1.8.0 generators/vulcanize/templates/munin/script/munin/example_simple.rb
nogara-rubber-1.7.2 generators/vulcanize/templates/munin/script/munin/example_simple.rb
nogara-rubber-1.7.2 lib/generators/vulcanize/templates/munin/script/munin/example_simple.rb
rubber-1.7.2 lib/generators/vulcanize/templates/munin/script/munin/example_simple.rb
rubber-1.7.2 generators/vulcanize/templates/munin/script/munin/example_simple.rb
rubber-1.7.1 lib/generators/vulcanize/templates/munin/script/munin/example_simple.rb
rubber-1.7.1 generators/vulcanize/templates/munin/script/munin/example_simple.rb
rubber-1.7.0 lib/generators/vulcanize/templates/munin/script/munin/example_simple.rb
rubber-1.7.0 generators/vulcanize/templates/munin/script/munin/example_simple.rb
rubber-1.6.3 lib/generators/vulcanize/templates/munin/script/munin/example_simple.rb
rubber-1.6.3 generators/vulcanize/templates/munin/script/munin/example_simple.rb
rubber-1.6.2 lib/generators/vulcanize/templates/munin/script/munin/example_simple.rb
rubber-1.6.2 generators/vulcanize/templates/munin/script/munin/example_simple.rb
rubber-1.6.1 generators/vulcanize/templates/munin/script/munin/example_simple.rb