]> granicus.if.org Git - icinga2/commitdiff
ITL: Add timeout option for oracle_health CheckCommand
authorYannick Charton <tontonitch-pro@yahoo.fr>
Wed, 21 Sep 2016 12:09:43 +0000 (14:09 +0200)
committerMichael Friedrich <michael.friedrich@netways.de>
Wed, 21 Sep 2016 12:09:43 +0000 (14:09 +0200)
fixes #12739

doc/10-icinga-template-library.md
itl/plugins-contrib.d/databases.conf

index 87685951303cb247e1012a692ef285275890b7ac..480b5a05357683c0a35c6517ebb2bd9980eb890e 100644 (file)
@@ -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:
 
index 9f3358cf0246b51f1ef0bf91655ee78c0fceb3cc..0c0c045b779e44ded327fb82e588b5d92923a4d3 100644 (file)
@@ -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 = {