]> granicus.if.org Git - icinga2/commitdiff
Update negate CheckCommand definition
authorMarkus Waldmueller <markus.waldmueller@netways.de>
Mon, 24 Jul 2017 06:49:16 +0000 (08:49 +0200)
committerJean Flach <jean-marcel.flach@icinga.com>
Mon, 7 Aug 2017 11:40:05 +0000 (13:40 +0200)
refs #5427

Signed-off-by: Jean Flach <jean-marcel.flach@icinga.com>
doc/10-icinga-template-library.md
itl/command-plugins.conf

index f0f9078825d9a6e00dd0262a42f1587d36e92f18..178d31db115cdd2cbaa96d7d69e418e69db81147 100644 (file)
@@ -795,7 +795,8 @@ negate_timeout              | **Optional.** Seconds before plugin times out (default: 11).
 negate_timeout_result  | **Optional.** Custom result on Negate timeouts, default to UNKNOWN.
 negate_ok              | **Optional.** OK, WARNING, CRITICAL or UNKNOWN.
 negate_warning         |               Numeric values are accepted.
-negate_critical                |               If nothing is specified, permutes OK and CRITICAL.
+negate_critical                |               If nothing is specified, 
+negate_unknown         |               permutes OK and CRITICAL.
 negate_substitute      | **Optional.** Substitute output text as well. Will only substitute text in CAPITALS.
 negate_command         | **Required.** Command to be negated.
 negate_arguments       | **Optional.** Arguments for the negated command.
index 16b1d24d6e1d5da474b1baa7a5fc4da5e0d7f8c5..964a2f256601670a9a30694f810ee70aa6be2c5d 100644 (file)
@@ -2781,6 +2781,9 @@ object CheckCommand "negate" {
                "-c" = {
                        value = "$negate_critical$"
                }
+               "-u" = {
+                       value = "$negate_unknown$"
+               }
                "-s" = {
                        set_if = "$negate_substitute$"
                        description = "Substitute output text as well. Will only substitute text in CAPITALS"