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:
parent
dbc27ab329
commit
f642b2b3a9
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user