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:
parent
cfbfbf48ad
commit
70d2c609bf
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user