bin/riemann-proc in riemann-tools-0.2.1 vs bin/riemann-proc in riemann-tools-0.2.2
- old
+ new
@@ -30,10 +30,10 @@
)
end
def linux_proc
process = opts[:proc_regex]
- running = Integer(`ps axo args | grep #{process} | grep -v grep | grep -v riemann-proc | wc -l`)
+ running = Integer(`ps axo args | grep '#{process}' | grep -v grep | grep -v riemann-proc | wc -l`)
if running > @limits[:critical][:max] or running < @limits[:critical][:min]
alert "proc #{process}", :critical, running, "process #{process} is running #{running} instances"
else
alert "proc #{process}", :ok, running, "process #{process} is running #{running} instances"
end