]> granicus.if.org Git - icinga2/commitdiff
Add additional arguments to mssql_health
authorDirk Goetz <dirk.goetz@netways.de>
Tue, 14 Mar 2017 14:15:50 +0000 (15:15 +0100)
committerGunnar Beutner <gunnar.beutner@icinga.com>
Tue, 14 Mar 2017 14:27:27 +0000 (15:27 +0100)
fixes #5063

Signed-off-by: Gunnar Beutner <gunnar.beutner@icinga.com>
doc/10-icinga-template-library.md
itl/plugins-contrib.d/databases.conf

index 57c34cafa59bf4285677c5c93e711b478e13b1a5..b139fac5f744239e5737bcaf7e9460cc75389f06 100644 (file)
@@ -2015,6 +2015,9 @@ mssql_health_regexp              | **Optional.** If set to true, "mssql_health_n
 mssql_health_units               | **Optional.** This is used for a better output of mode=sql and for specifying thresholds for mode=tablespace-free. Possible values are "%", "KB", "MB" and "GB".
 mssql_health_offlineok           | **Optional.** Set this to true if offline databases are perfectly ok for you. Defaults to false.
 mssql_health_commit              | **Optional.** Set this to true to turn on autocommit for the dbd::sybase module. Defaults to false.
+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.
 
 #### <a id="plugin-contrib-command-mysql_health"></a> mysql_health
 
index ce72190e49daaf24e5785a7858ac392cb0948c05..8e7f7fa7f21d9f58c69d92921568fd0502895252 100644 (file)
@@ -85,11 +85,25 @@ object CheckCommand "mssql_health" {
                        set_if = "$mssql_health_commit$"
                        description = "turns on autocommit for the dbd::sybase module"
                }
+               "--notemp" = {
+                       set_if = "$mssql_health_notemp$"
+                       description = "Ignore temporary databases/tablespaces"
+               }
+               "--nooffline" = {
+                       set_if = "$mssql_health_nooffline$"
+                       description = "Skip the offline databases"
+               }
+               "--lookback" = {
+                       value = "$mssql_health_lookback$"
+                       description = "The amount of time you want to look back when calculating average rates"
+               }
        }
 
        vars.mssql_health_regexp = false
        vars.mssql_health_offlineok = false
        vars.mssql_health_commit = false
+       vars.mssql_health_notemp = false
+       vars.mssql_health_nooffline = false
 }
 
 object CheckCommand "mysql_health" {