summaryrefslogtreecommitdiff
path: root/lib/oxidized/input
diff options
context:
space:
mode:
authorSaku Ytti <saku@ytti.fi>2014-04-15 20:36:49 +0300
committerSaku Ytti <saku@ytti.fi>2014-04-15 20:36:49 +0300
commitc1dbc182671e52014966db96ed0a3f7a016a384d (patch)
treeb7f7776bb185670fa5190fed8826bfaf83d85469 /lib/oxidized/input
parent6aba316da6f5d3de46037ac57824cae59997f712 (diff)
Waittime => Timeout
Waittime is how long it waits for /more/ input /after/ matching to RE. This has been wrong always in Oxidized but only after changing default timeout to 30, it became apparent. When timeout was 5s, it just gave 5s delay to every command, now it gives 30s delay.
Diffstat (limited to 'lib/oxidized/input')
-rw-r--r--lib/oxidized/input/telnet.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oxidized/input/telnet.rb b/lib/oxidized/input/telnet.rb
index 218b13c..d52ebf0 100644
--- a/lib/oxidized/input/telnet.rb
+++ b/lib/oxidized/input/telnet.rb
@@ -10,7 +10,7 @@ module Oxidized
@node = node
@timeout = CFG.timeout
@node.model.cfg['telnet'].each { |cb| instance_exec(&cb) }
- @telnet = Net::Telnet.new 'Host' => @node.ip, 'Waittime' => @timeout,
+ @telnet = Net::Telnet.new 'Host' => @node.ip, 'Timeout' => @timeout,
'Model' => @node.model
expect username
@telnet.puts @node.auth[:username]