From 40cd2ec8986d6c2040c725df8f6f84901cef6f2c Mon Sep 17 00:00:00 2001 From: Wild Kat Date: Wed, 22 Aug 2018 15:27:25 +0200 Subject: add configurable per node ssh_no_keepalive boolean (#1489) --- lib/oxidized/input/ssh.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.1