summaryrefslogtreecommitdiff
path: root/lib/oxidized/input/telnet.rb
diff options
context:
space:
mode:
authorSamer Abdel-Hafez <samer@m247.com>2013-05-01 12:45:11 +0100
committerSamer Abdel-Hafez <samer@m247.com>2013-05-01 12:45:11 +0100
commit17a9fb3d013912eea2a1e834bc0480b677592d71 (patch)
tree8ce10918fa67cd0e66b173c581481be3809df6b1 /lib/oxidized/input/telnet.rb
parentc252a589b6b0274a17bfe40db3fd57ebeea3beb8 (diff)
add latest changes
Diffstat (limited to 'lib/oxidized/input/telnet.rb')
-rw-r--r--lib/oxidized/input/telnet.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/oxidized/input/telnet.rb b/lib/oxidized/input/telnet.rb
index c1afde2..f1222d8 100644
--- a/lib/oxidized/input/telnet.rb
+++ b/lib/oxidized/input/telnet.rb
@@ -17,7 +17,7 @@ module Oxidized
expect password
@telnet.puts @node.auth[:password]
expect @node.prompt
- rescue Errno::ECONNREFUSED, Timeout::Error
+ rescue Timeout::Error, Errno::ECONNREFUSED, Errno::ECONNRESET, Errno::EHOSTUNREACH
return false
end
end
@@ -28,7 +28,7 @@ module Oxidized
args.merge!({ 'Match' => expect, 'Timeout' => @timeout }) if expect
begin
@telnet.cmd args
- rescue Timeout::Error, Errno::ECONNRESET
+ rescue Timeout::Error, Errno::ECONNRESET, Errno::EPIPE
return false
end
end