Merge pull request #5209 from Mikesch-mp/itl_mssql

Add report mode to mssql_health

fixes #5209
This commit is contained in:
Michael Friedrich 2017-05-09 14:52:55 +02:00 committed by GitHub
commit 5b7226548c
2 changed files with 6 additions and 0 deletions

View File

@ -2052,6 +2052,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

View 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" {