lib/perus/pinger/metrics/running.rb in perus-1.0.6 vs lib/perus/pinger/metrics/running.rb in perus-1.0.7
- old
+ new
@@ -1,10 +1,10 @@
module Perus::Pinger
class Running < Command
description 'Reports "yes" if "process_path" is running, "no"
otherwise. Valid values for "process_path" are contained
in the pinger config file.'
- option :process_path, restricted: true
+ option :process_path, restricted: false
metric!
def run
begin
ps_result = shell("ps aux | grep -v grep | grep #{options.process_path}")