2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

use "unicorn" instead of "unicorn_rails" in process greping

This commit is contained in:
linyows 2014-04-18 10:10:06 +09:00
parent 2e556e9d07
commit f6b9d755d3

View File

@ -46,7 +46,7 @@ module Munin
def memory_usage
result = { :master => {master_pid => nil}, :worker => {} }
ps_output = `ps auxw | grep unicorn_rails`
ps_output = `ps auxw | grep unicorn`
ps_output.split("\n").each do |line|
chunks = line.strip.split(/\s+/, 11)
pid, pmem_rss, pcmd = chunks.values_at(1, 5, 10)