mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
This version support a rails_root environment variable.
This commit is contained in:
parent
214407caa0
commit
197e093c66
@ -73,7 +73,7 @@ when "config"
|
||||
puts "total_worker.label total_workers"
|
||||
puts "idle_worker.label idle_workers"
|
||||
else
|
||||
m = Munin::UnicornStatus.new(RAILS_ROOT)
|
||||
m = Munin::UnicornStatus.new(ENV['rails_root'] || RAILS_ROOT)
|
||||
puts "total_worker.value #{m.worker_count}"
|
||||
puts "idle_worker.value #{m.idle_worker_count}"
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user