summaryrefslogtreecommitdiff
path: root/lib/oxidized/input
diff options
context:
space:
mode:
authorSaku Ytti <saku@ytti.fi>2013-04-21 16:37:26 +0300
committerSaku Ytti <saku@ytti.fi>2013-04-21 16:37:26 +0300
commit5a4d2ce1a0380a47e51a9c7aa248e82a5ba5cd39 (patch)
tree8fd0cf55b019bae2244a413dd774846cea5920ae /lib/oxidized/input
parentf1287a7925901bf3518eb69079304bfb97f7434d (diff)
Add input method fallback, e.g. if ssh does not work, try telnet
Diffstat (limited to 'lib/oxidized/input')
-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 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