1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-14 19:24:10 +03:00

Feature #3988: when the remote probes are not successfully executed, there is no information in oned.log

This commit is contained in:
Jaime Melis 2015-09-18 16:05:38 +02:00
parent dbc27ab329
commit f642b2b3a9

View File

@ -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]