]> granicus.if.org Git - icinga2/commitdiff
ITL: Add timeout option for mysql_health CheckCommand
authorRoman Gerhardt <roman.gerhardt@cbc-x.com>
Tue, 6 Dec 2016 16:49:01 +0000 (17:49 +0100)
committerMichael Friedrich <michael.friedrich@icinga.com>
Tue, 6 Dec 2016 16:49:01 +0000 (17:49 +0100)
fixes #13431

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

index b7b3954c01217ef32c4b90fe1e83a5f54e9500ff..477b71a55c014ab60bb04aace60224147199ff07 100644 (file)
@@ -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.
 
 #### <a id="plugin-contrib-command-oracle_health"></a> oracle_health
 
index 0c0c045b779e44ded327fb82e588b5d92923a4d3..b3aa045dc1d37ce7bbf93b4dd12ad3afd0e9b653 100644 (file)
@@ -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$"