summaryrefslogtreecommitdiff
path: root/lib/oxidized/input/ssh.rb
diff options
context:
space:
mode:
authornopedial <samer@m247.com>2013-05-12 14:31:46 +0100
committernopedial <samer@m247.com>2013-05-12 14:31:46 +0100
commit0d28c4a5e6a8c64d765229cc26e6574fb7a35a5d (patch)
treedcbb65120ddde3860f2de32936bb3dbbc0ab594a /lib/oxidized/input/ssh.rb
parent50ec31c6d425c17b2e86070bf4b0bda7c2e03256 (diff)
add rescue for Errno::EHOSTUNREACH in input/ssh.rb
Diffstat (limited to 'lib/oxidized/input/ssh.rb')
-rw-r--r--lib/oxidized/input/ssh.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oxidized/input/ssh.rb b/lib/oxidized/input/ssh.rb
index 430eaa2..c0594db 100644
--- a/lib/oxidized/input/ssh.rb
+++ b/lib/oxidized/input/ssh.rb
@@ -12,7 +12,7 @@ module Oxidized
begin
@ssh = Net::SSH.start @node.ip, @node.auth[:username],
:password => @node.auth[:password], :timeout => CFG.timeout
- rescue Timeout::Error, Errno::ECONNREFUSED, Errno::ECONNRESET, Net::SSH::Disconnect
+ rescue Timeout::Error, Errno::ECONNREFUSED, Errno::ECONNRESET, Errno::EHOSTUNREACH, Net::SSH::Disconnect
return false
end
open_shell @ssh unless @exec