summaryrefslogtreecommitdiff
path: root/lib/oxidized/input
diff options
context:
space:
mode:
authorWild Kat <wk@users.noreply.github.com>2018-08-22 15:27:25 +0200
committerGitHub <noreply@github.com>2018-08-22 15:27:25 +0200
commit40cd2ec8986d6c2040c725df8f6f84901cef6f2c (patch)
tree4a19f114dcacb555544fb3c7de59f5964eca2398 /lib/oxidized/input
parentd175a308233cb490dfb2532b5c815ddaa3f6eb74 (diff)
add configurable per node ssh_no_keepalive boolean (#1489)
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 8caa801..11b0ae6 100644
--- a/lib/oxidized/input/ssh.rb
+++ b/lib/oxidized/input/ssh.rb
@@ -122,7 +122,7 @@ module Oxidized
ssh_opts = {
port: (vars(:ssh_port) || 22).to_i,
paranoid: secure,
- keepalive: true,
+ keepalive: vars(:ssh_no_keepalive) ? false : true,
password: @node.auth[:password],
timeout: Oxidized.config.timeout,
number_of_password_prompts: 0