From 464e7f0e9f21f440f17fea55740c758edfad7345 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Thu, 15 Oct 2015 15:13:24 +0200 Subject: [PATCH] Add timeout argument for pop, spop, imap, simap commands fixes #10219 --- doc/7-icinga-template-library.md | 4 ++++ itl/command-plugins.conf | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/doc/7-icinga-template-library.md b/doc/7-icinga-template-library.md index 4c3973c96..06a7b18d8 100644 --- a/doc/7-icinga-template-library.md +++ b/doc/7-icinga-template-library.md @@ -455,6 +455,7 @@ Name | Description ----------------|-------------- imap_address | **Optional.** The host's address. Defaults to "$address$" if the host's `address` attribute is set, "$address6$" otherwise. imap_port | **Optional.** The port that should be checked. Defaults to 143. +imap_timeout | **Optional.** The timeout in seconds. ## ldap @@ -647,6 +648,7 @@ Name | Description ----------------|-------------- pop_address | **Optional.** The host's address. Defaults to "$address$" if the host's `address` attribute is set, "$address6$" otherwise. pop_port | **Optional.** The port that should be checked. Defaults to 110. +pop_timeout | **Optional.** The timeout in seconds. ## procs @@ -684,6 +686,7 @@ Name | Description ----------------|-------------- simap_address | **Optional.** The host's address. Defaults to "$address$" if the host's `address` attribute is set, "$address6$" otherwise. simap_port | **Optional.** The host's port. +simap_timeout | **Optional.** The timeout in seconds. ## smtp @@ -786,6 +789,7 @@ Name | Description ----------------|-------------- spop_address | **Optional.** The host's address. Defaults to "$address$" if the host's `address` attribute is set, "$address6$" otherwise. spop_port | **Optional.** The host's port. +spop_timeout | **Optional.** The timeout in seconds. ## ssh diff --git a/itl/command-plugins.conf b/itl/command-plugins.conf index 78fbe04dc..22a64f5c0 100644 --- a/itl/command-plugins.conf +++ b/itl/command-plugins.conf @@ -557,6 +557,7 @@ object CheckCommand "imap" { arguments = { "-H" = "$imap_address$" "-p" = "$imap_port$" + "-t" = "$imap_timeout$" } vars.imap_address = "$check_address$" @@ -571,6 +572,7 @@ object CheckCommand "simap" { arguments = { "-H" = "$simap_address$" "-p" = "$simap_port$" + "-t" = "$simap_timeout$" } vars.simap_address = "$check_address$" @@ -585,6 +587,7 @@ object CheckCommand "pop" { arguments = { "-H" = "$pop_address$" "-p" = "$pop_port$" + "-t" = "$pop_timeout$" } vars.pop_address = "$check_address$" @@ -599,6 +602,7 @@ object CheckCommand "spop" { arguments = { "-H" = "$spop_address$" "-p" = "$spop_port$" + "-t" = "$spop_timeout$" } vars.spop_address = "$check_address$" -- 2.40.0