From 283cf185ec11b94cd6858f85c123de50d9b4f652 Mon Sep 17 00:00:00 2001 From: Roman Gerhardt Date: Tue, 6 Dec 2016 17:49:01 +0100 Subject: [PATCH] ITL: Add timeout option for mysql_health CheckCommand fixes #13431 --- doc/10-icinga-template-library.md | 1 + itl/plugins-contrib.d/databases.conf | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/doc/10-icinga-template-library.md b/doc/10-icinga-template-library.md index b7b3954c0..477b71a55 100644 --- a/doc/10-icinga-template-library.md +++ b/doc/10-icinga-template-library.md @@ -2045,6 +2045,7 @@ mysql_health_negate | **Optional.** Emulate the negate plugin. --ne mysql_health_withmymodulesdyndir | **Optional.** Add-on modules for the my-modes will be searched in this directory." mysql_health_statefilesdir | **Optional.** An alternate directory where the plugin can save files." mysql_health_isvalidtime | **Optional.** Signals the plugin to return OK if now is not a valid check time." +mysql_health_timeout | **Optional.** Plugin timeout. Defaults to 60s. #### oracle_health diff --git a/itl/plugins-contrib.d/databases.conf b/itl/plugins-contrib.d/databases.conf index 0c0c045b7..b3aa045dc 100644 --- a/itl/plugins-contrib.d/databases.conf +++ b/itl/plugins-contrib.d/databases.conf @@ -238,6 +238,10 @@ object CheckCommand "mysql_health" { value = "$mysql_health_isvalidtime$" description = "Signals the plugin to return OK if now is not a valid check time." } + "--timeout" = { + value = "$mysql_health_timeout$" + description = "plugin timeout. Default is 60 seconds" + } } vars.mysql_health_hostname = "$check_address$" -- 2.40.0