diff options
author | Wild Kat <wk@users.noreply.github.com> | 2018-08-22 15:27:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-22 15:27:25 +0200 |
commit | 40cd2ec8986d6c2040c725df8f6f84901cef6f2c (patch) | |
tree | 4a19f114dcacb555544fb3c7de59f5964eca2398 /lib/oxidized | |
parent | d175a308233cb490dfb2532b5c815ddaa3f6eb74 (diff) |
add configurable per node ssh_no_keepalive boolean (#1489)
Diffstat (limited to 'lib/oxidized')
-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 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 |