From f642b2b3a9295f93e536e320707c8e6b4a41f641 Mon Sep 17 00:00:00 2001 From: Jaime Melis Date: Fri, 18 Sep 2015 16:05:38 +0200 Subject: [PATCH] Feature #3988: when the remote probes are not successfully executed, there is no information in oned.log --- src/im_mad/remotes/common.d/collectd-client.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/im_mad/remotes/common.d/collectd-client.rb b/src/im_mad/remotes/common.d/collectd-client.rb index 940d30b756..440a842505 100644 --- a/src/im_mad/remotes/common.d/collectd-client.rb +++ b/src/im_mad/remotes/common.d/collectd-client.rb @@ -65,9 +65,9 @@ class CollectdClient end def run_probes - data = `#{@run_probes_cmd}` + data = `#{@run_probes_cmd} 2>&1` code = $?.exitstatus == 0 - data = "Error executing probes" if !code + data64 = Base64::encode64(data).strip.delete("\n") [data64, code]