mirror of https://github.com/Icinga/icinga2.git
Add the --timeout parameter to the check_ssh / ssh CheckCommand
fixes #6791 Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
This commit is contained in:
parent
dfd3091c6a
commit
87d789ad8b
1
AUTHORS
1
AUTHORS
|
@ -1,6 +1,7 @@
|
||||||
Alexander Wirt <formorer@debian.org>
|
Alexander Wirt <formorer@debian.org>
|
||||||
Bernd Erk <bernd.erk@icinga.org>
|
Bernd Erk <bernd.erk@icinga.org>
|
||||||
Carlos Cesario <carloscesario@gmail.com>
|
Carlos Cesario <carloscesario@gmail.com>
|
||||||
|
Gaël Beaudoin <gaboo@gaboo.org>
|
||||||
Gerd von Egidy <gerd@egidy.de>
|
Gerd von Egidy <gerd@egidy.de>
|
||||||
Gunnar Beutner <gunnar.beutner@netways.de>
|
Gunnar Beutner <gunnar.beutner@netways.de>
|
||||||
Ildar Hizbulin <hizel@vyborg.ru>
|
Ildar Hizbulin <hizel@vyborg.ru>
|
||||||
|
|
|
@ -2035,6 +2035,7 @@ Name | Description
|
||||||
----------------|--------------
|
----------------|--------------
|
||||||
ssh_address | **Optional.** The host's address. Defaults to "$address$".
|
ssh_address | **Optional.** The host's address. Defaults to "$address$".
|
||||||
ssh_port | **Optional.** The port that should be checked. Defaults to 22.
|
ssh_port | **Optional.** The port that should be checked. Defaults to 22.
|
||||||
|
ssh_timeout | **Optional.** Seconds before connection times out. Defaults to 10.
|
||||||
|
|
||||||
#### <a id="plugin-check-command-disk"></a> disk
|
#### <a id="plugin-check-command-disk"></a> disk
|
||||||
|
|
||||||
|
|
|
@ -312,6 +312,7 @@ object CheckCommand "ssh" {
|
||||||
|
|
||||||
arguments = {
|
arguments = {
|
||||||
"-p" = "$ssh_port$"
|
"-p" = "$ssh_port$"
|
||||||
|
"-t" = "$ssh_timeout$"
|
||||||
"host" = {
|
"host" = {
|
||||||
value = "$ssh_address$"
|
value = "$ssh_address$"
|
||||||
skip_key = true
|
skip_key = true
|
||||||
|
|
Loading…
Reference in New Issue