Sha256: b7c9fc9e5f9185d10a2a547fab8064e2d7b25a98a855b2ec12024d87f7bacee7

Contents?: true

Size: 575 Bytes

Versions: 75

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

75 entries across 75 versions & 1 rubygems

Version Path
rubber-3.2.2 templates/munin/script/munin/example_simple.rb
rubber-3.2.1 templates/munin/script/munin/example_simple.rb
rubber-3.2.0 templates/munin/script/munin/example_simple.rb
rubber-3.1.0 templates/munin/script/munin/example_simple.rb
rubber-3.0.1 templates/munin/script/munin/example_simple.rb
rubber-3.0.0 templates/munin/script/munin/example_simple.rb
rubber-2.16.0 templates/munin/script/munin/example_simple.rb
rubber-2.15.2 templates/munin/script/munin/example_simple.rb
rubber-2.15.1 templates/munin/script/munin/example_simple.rb
rubber-2.15.0 templates/munin/script/munin/example_simple.rb
rubber-2.14.0 templates/munin/script/munin/example_simple.rb
rubber-2.13.1 templates/munin/script/munin/example_simple.rb
rubber-2.13.0 templates/munin/script/munin/example_simple.rb
rubber-2.12.2 templates/munin/script/munin/example_simple.rb
rubber-2.12.1 templates/munin/script/munin/example_simple.rb
rubber-2.12.0 templates/munin/script/munin/example_simple.rb
rubber-2.11.0 templates/munin/script/munin/example_simple.rb
rubber-2.10.2 templates/munin/script/munin/example_simple.rb
rubber-2.10.1 templates/munin/script/munin/example_simple.rb
rubber-2.10.0 templates/munin/script/munin/example_simple.rb