From 6bf81eb97978432d980489df6e1cac4fa0db8b8b Mon Sep 17 00:00:00 2001 From: Mikesch-mp Date: Sun, 30 Apr 2017 18:34:59 +0200 Subject: [PATCH] Add report mode to mssql_health --- doc/10-icinga-template-library.md | 1 + itl/plugins-contrib.d/databases.conf | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/doc/10-icinga-template-library.md b/doc/10-icinga-template-library.md index 2a285b7db..a7a18d7b9 100644 --- a/doc/10-icinga-template-library.md +++ b/doc/10-icinga-template-library.md @@ -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`. #### mysql_health diff --git a/itl/plugins-contrib.d/databases.conf b/itl/plugins-contrib.d/databases.conf index 8e7f7fa7f..8abb99df6 100644 --- a/itl/plugins-contrib.d/databases.conf +++ b/itl/plugins-contrib.d/databases.conf @@ -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" {