1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

M #-: Manage connection error at vCenter monitor (#860)

Signed-off-by: Christian González <cgonzalez@opennebula.io>
This commit is contained in:
Christian González 2021-02-23 12:25:51 +01:00 committed by GitHub
parent cfbfbf48ad
commit 70d2c609bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -847,9 +847,14 @@ class ClusterSet
$logger.debug("\tResult(#{success})\n#{probe_result}\n")
c[:monitordc].send("#{probe_name}_tcp".to_sym,
success,
probe_result)
begin
c[:monitordc].send("#{probe_name}_tcp".to_sym,
success,
probe_result)
rescue Errno::ECONNREFUSED => e
$logger.error("Error sending probe result: #{e.message}")
exit(-1)
end
c["last_#{probe_name}".to_sym] = Time.now.to_i
end