From 542d4143dc1be0d97c9b1ffaf2bfead17d0edefc Mon Sep 17 00:00:00 2001 From: Vladimir Vitkov <5081863+zeridon@users.noreply.github.com> Date: Wed, 30 Oct 2019 00:32:57 +0200 Subject: [PATCH] more ssh options for checks --- monitoring/icinga2/conf.d/commands-new.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/monitoring/icinga2/conf.d/commands-new.conf b/monitoring/icinga2/conf.d/commands-new.conf index 847f2dc..d5c5f23 100644 --- a/monitoring/icinga2/conf.d/commands-new.conf +++ b/monitoring/icinga2/conf.d/commands-new.conf @@ -36,6 +36,12 @@ object CheckCommand "check_bandwidth" { vars.by_ssh_command = PluginDir + "/check_bandwidth.sh -i $interface$" vars.by_ssh_timeout = "420" timeout = "420" + vars.by_ssh_options = [ + "StrictHostKeyChecking=no", + "ControlMaster=auto", + "ControlPath=/var/run/icinga2/$host.name$", + "ControlPersist=20m" + ] } #######################################################################################