From 0742301b1d22fef3e1e2ec52af7ffb678354b690 Mon Sep 17 00:00:00 2001 From: Yannick Charton Date: Wed, 21 Sep 2016 14:09:43 +0200 Subject: [PATCH] ITL: Add timeout option for oracle_health CheckCommand fixes #12739 --- 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 876859513..480b5a053 100644 --- a/doc/10-icinga-template-library.md +++ b/doc/10-icinga-template-library.md @@ -2036,6 +2036,7 @@ oracle_health_units | **Optional.** This is used for a better outpu oracle_health_ident | **Optional.** If set to true, outputs instance and database names. Defaults to false. oracle_health_commit | **Optional.** Set this to true to turn on autocommit for the dbd::oracle module. Defaults to false. oracle_health_noperfdata | **Optional.** Set this to true if you want to disable perfdata. Defaults to false. +oracle_health_timeout | **Optional.** Plugin timeout. Defaults to 60s. Environment Macros: diff --git a/itl/plugins-contrib.d/databases.conf b/itl/plugins-contrib.d/databases.conf index 9f3358cf0..0c0c045b7 100644 --- a/itl/plugins-contrib.d/databases.conf +++ b/itl/plugins-contrib.d/databases.conf @@ -392,6 +392,10 @@ object CheckCommand "oracle_health" { set_if = "$oracle_health_noperfdata$" description = "do not output performance data" } + "--timeout" = { + value = "$oracle_health_timeout$" + description = "plugin timeout. Default is 60 seconds" + } } env = { -- 2.40.0