Class: Munin::RakeProcesses::Count

Inherits:
Plugin
  • Object
show all
Defined in:
lib/munin/rake_processes/count.rb

Instance Attribute Summary

Attributes inherited from Plugin

#debug, #graph_category

Instance Method Summary collapse

Methods inherited from Plugin

#autoconf, #initialize, #rake_processes, rake_ps_string

Constructor Details

This class inherits a constructor from Munin::RakeProcesses::Plugin

Instance Method Details

#configObject



5
6
7
8
9
10
11
12
13
# File 'lib/munin/rake_processes/count.rb', line 5

def config
  puts <<-CONFIG
graph_category #{graph_category}
graph_title Number of Rake Processes
graph_vlabel Count of Rake Processes
graph_info The Rake processes running - (possibly from cron)
rake_processes.label rake_processes
  CONFIG
end

#runObject



15
16
17
# File 'lib/munin/rake_processes/count.rb', line 15

def run
  puts "rake_processes.value #{rake_processes.size}"
end