diff options
author | Saku Ytti <saku@ytti.fi> | 2013-04-21 16:37:26 +0300 |
---|---|---|
committer | Saku Ytti <saku@ytti.fi> | 2013-04-21 16:37:26 +0300 |
commit | 5a4d2ce1a0380a47e51a9c7aa248e82a5ba5cd39 (patch) | |
tree | 8fd0cf55b019bae2244a413dd774846cea5920ae /lib/oxidized/input/ssh.rb | |
parent | f1287a7925901bf3518eb69079304bfb97f7434d (diff) |
Add input method fallback, e.g. if ssh does not work, try telnet
Diffstat (limited to 'lib/oxidized/input/ssh.rb')
-rw-r--r-- | lib/oxidized/input/ssh.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oxidized/input/ssh.rb b/lib/oxidized/input/ssh.rb index 45c89ba..3471eea 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, Net::SSH::Disconnect + rescue Timeout::Error, Net::SSH::Disconnect, Errno::ECONNREFUSED return false end @ses = open_shell @ssh unless @exec |