Support --only-critical for check_apt

fixes #117

Signed-off-by: Gunnar Beutner <gunnar.beutner@icinga.com>
This commit is contained in:
Christian Schmidt 2017-02-16 10:57:59 +01:00 committed by Gunnar Beutner
parent e6ae582104
commit d8dbf781a7
2 changed files with 5 additions and 0 deletions

View File

@ -140,6 +140,7 @@ apt_include | **Optional.** Include only packages matching REGEXP. C
apt_exclude | **Optional.** Exclude packages matching REGEXP from the list of packages that would otherwise be included. Can be specified multiple times.
apt_critical | **Optional.** If the full package information of any of the upgradable packages match this REGEXP, the plugin will return CRITICAL status. Can be specified multiple times.
apt_timeout | **Optional.** Seconds before plugin times out (default: 10).
apt_only_critical | **Optional.** Only warn about critical upgrades.
### <a id="plugin-check-command-breeze"></a> breeze

View File

@ -1492,6 +1492,10 @@ object CheckCommand "apt" {
value = "$apt_timeout$"
description = "Seconds before plugin times out (default: 10)."
}
"--only-critical" = {
set_if = "$apt_only_critical$"
description = "Only warn about critical upgrades."
}
}
timeout = 5m