From: Adam James Date: Wed, 5 Dec 2018 09:13:03 +0000 (+0000) Subject: ITL: Support --list argument to check_apt X-Git-Tag: v2.11.0-rc1~276^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3a4f075f72c5e6e3dd239cf1c53a088851079b47;p=icinga2 ITL: Support --list argument to check_apt --- diff --git a/doc/10-icinga-template-library.md b/doc/10-icinga-template-library.md index 103410d2d..d258cffd5 100644 --- a/doc/10-icinga-template-library.md +++ b/doc/10-icinga-template-library.md @@ -197,6 +197,7 @@ apt_exclude | **Optional.** Exclude packages matching REGEXP from th 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. +apt_list | **Optional.** List packages available for upgrade. ### breeze diff --git a/itl/command-plugins.conf b/itl/command-plugins.conf index 8868b0456..9960d10a7 100644 --- a/itl/command-plugins.conf +++ b/itl/command-plugins.conf @@ -1958,6 +1958,10 @@ object CheckCommand "apt" { set_if = "$apt_only_critical$" description = "Only warn about critical upgrades." } + "--list" = { + set_if = "$apt_list$" + description = "List packages available for upgrade." + } } timeout = 5m