]> granicus.if.org Git - icinga2/commitdiff
Add report mode to mssql_health 5209/head
authorMikesch-mp <mikesch-mp@koebbes.de>
Sun, 30 Apr 2017 16:34:59 +0000 (18:34 +0200)
committerMichael Friedrich <michael.friedrich@icinga.com>
Tue, 9 May 2017 12:43:20 +0000 (14:43 +0200)
doc/10-icinga-template-library.md
itl/plugins-contrib.d/databases.conf

index 2a285b7db3c39f6d358891f67e0969eae544f701..a7a18d7b996690bd0f1afdc2c72e0f0ae432d3c7 100644 (file)
@@ -2051,6 +2051,7 @@ mssql_health_commit              | **Optional.** Set this to true to turn on aut
 mssql_health_notemp              | **Optional.** Set this to true to ignore temporary databases/tablespaces. Defaults to false.
 mssql_health_nooffline           | **Optional.** Set this to true to ignore offline databases. Defaults to false.
 mssql_health_lookback            | **Optional.** The amount of time you want to look back when calculating average rates.
+mssql_health_report              | **Optional.** Report can be used to output only the bad news. Possible values are "short", "long", "html". Defaults to `short`.
 
 #### <a id="plugin-contrib-command-mysql_health"></a> mysql_health
 
index 8e7f7fa7f21d9f58c69d92921568fd0502895252..8abb99df6637bbc983983b3596f4de3d7f04580f 100644 (file)
@@ -97,6 +97,10 @@ object CheckCommand "mssql_health" {
                        value = "$mssql_health_lookback$"
                        description = "The amount of time you want to look back when calculating average rates"
                }
+               "--report" = {
+                       value = "$mssql_health_report$"
+                       description = "Report can be used to output only the bad news (short,long,html)"
+               }
        }
 
        vars.mssql_health_regexp = false
@@ -104,6 +108,7 @@ object CheckCommand "mssql_health" {
        vars.mssql_health_commit = false
        vars.mssql_health_notemp = false
        vars.mssql_health_nooffline = false
+       vars.mssql_health_report = "short"
 }
 
 object CheckCommand "mysql_health" {