]> granicus.if.org Git - icinga2/commitdiff
ITL: Support --list argument to check_apt 6823/head
authorAdam James <adam.james@transitiv.co.uk>
Wed, 5 Dec 2018 09:13:03 +0000 (09:13 +0000)
committerAdam James <adam.james@transitiv.co.uk>
Wed, 5 Dec 2018 09:32:54 +0000 (09:32 +0000)
doc/10-icinga-template-library.md
itl/command-plugins.conf

index 103410d2d98d9be95c65b7f67409d4ffb7aec254..d258cffd558e99bdb1bcead7c860b36de5b5acb3 100644 (file)
@@ -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 <a id="plugin-check-command-breeze"></a>
index 8868b045647758968f9755fab16d31c1df199d67..9960d10a78d6a0b23fc2974701519e50322306a6 100644 (file)
@@ -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