From 87d789ad8bef78230e5e2048e10ac14f062817fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20Beaudoin?= Date: Mon, 28 Jul 2014 10:28:16 +0200 Subject: [PATCH] Add the --timeout parameter to the check_ssh / ssh CheckCommand fixes #6791 Signed-off-by: Michael Friedrich --- AUTHORS | 1 + doc/6-configuring-icinga-2.md | 1 + itl/command-plugins.conf | 1 + 3 files changed, 3 insertions(+) diff --git a/AUTHORS b/AUTHORS index ce02af875..656c1db44 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1,6 +1,7 @@ Alexander Wirt Bernd Erk Carlos Cesario +Gaƫl Beaudoin Gerd von Egidy Gunnar Beutner Ildar Hizbulin diff --git a/doc/6-configuring-icinga-2.md b/doc/6-configuring-icinga-2.md index d6ae9bafd..315982768 100644 --- a/doc/6-configuring-icinga-2.md +++ b/doc/6-configuring-icinga-2.md @@ -2035,6 +2035,7 @@ Name | Description ----------------|-------------- ssh_address | **Optional.** The host's address. Defaults to "$address$". ssh_port | **Optional.** The port that should be checked. Defaults to 22. +ssh_timeout | **Optional.** Seconds before connection times out. Defaults to 10. #### disk diff --git a/itl/command-plugins.conf b/itl/command-plugins.conf index cd9d95acf..d33b05453 100644 --- a/itl/command-plugins.conf +++ b/itl/command-plugins.conf @@ -312,6 +312,7 @@ object CheckCommand "ssh" { arguments = { "-p" = "$ssh_port$" + "-t" = "$ssh_timeout$" "host" = { value = "$ssh_address$" skip_key = true