2 # put in /etc/munin/plugins and restart munin-node
 
   3 # by Dan Manges, http://www.dcmanges.com/blog/rails-application-visualization-with-munin
 
   4 # NOTE: you might need to add munin to allow passwordless sudo for passenger-memory-stats 
 
   8 graph_args --base 1024 -l 0 --vertical-label bytes --upper-limit 4056231936
 
   9 graph_category passenger
 
  10 graph_title Passenger memory
 
  18   status = `/usr/sbin/passenger-memory-stats | tail -1` 
 
  20     $stderr.puts "failed executing passenger-memory-stats"
 
  23   status =~ /(\d+\.\d+)/
 
  24   puts "memory.value #{($1.to_f * 1024 * 1024).round}"
 
  27 if ARGV[0] == "config"