Skip to content
This repository
branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 examples
Octocat-spinner-32 lib
Octocat-spinner-32 .document
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.rdoc
Octocat-spinner-32 Rakefile
Octocat-spinner-32 VERSION
Octocat-spinner-32 munin_plugin.gemspec

Munin Plugin

A friendly API for creating munin plugins in ruby.

Here's the example from the munin site, implmeneted with munin_plugin:

#!/usr/bin/env ruby

require 'rubygems' # or something else
require 'munin_plugin'

munin_plugin do
  graph_title  "Load average"
  graph_vlabel "load"
  load.label   "load"

  collect do
    load.value `cat /proc/loadavg`.split(" ")[1]

That's it.

Save your file as loadavg and run it with ./loadavg.

Example output:

[james@ubuntu munin_plugin (master)]$ examples/loadavg config
graph_title Load average
graph_vlabel load
load.label load

[james@ubuntu munin_plugin (master)]$ examples/loadavg 
load.value 0.03


sudo gem install munin_plugin


Copyright © 2010 James Golick. See LICENSE for details.

Something went wrong with that request. Please try again.