From 0d28c4a5e6a8c64d765229cc26e6574fb7a35a5d Mon Sep 17 00:00:00 2001 From: nopedial Date: Sun, 12 May 2013 14:31:46 +0100 Subject: add rescue for Errno::EHOSTUNREACH in input/ssh.rb --- lib/oxidized/input/ssh.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.1