bin/metrics-ceph.rb in sensu-plugins-ceph-0.0.5 vs bin/metrics-ceph.rb in sensu-plugins-ceph-1.0.0
- old
+ new
@@ -78,10 +78,9 @@
begin
cmd += config[:cluster] if config[:cluster]
cmd += config[:keyring] if config[:keyring]
cmd += config[:monitor] if config[:monitor]
cmd += config[:name] if config[:name]
- cmd += ' 2>&1'
Timeout.timeout(config[:timeout]) do
pipe = IO.popen(cmd)
Process.wait(pipe.pid)
status = $CHILD_STATUS.exitstatus
end