From 96777b9f131c5e92b838917fc5eb38f56ba040b5 Mon Sep 17 00:00:00 2001 From: Markus Waldmueller Date: Mon, 24 Jul 2017 08:49:16 +0200 Subject: [PATCH] Update negate CheckCommand definition refs #5427 Signed-off-by: Jean Flach --- doc/10-icinga-template-library.md | 3 ++- itl/command-plugins.conf | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/10-icinga-template-library.md b/doc/10-icinga-template-library.md index f0f907882..178d31db1 100644 --- a/doc/10-icinga-template-library.md +++ b/doc/10-icinga-template-library.md @@ -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. diff --git a/itl/command-plugins.conf b/itl/command-plugins.conf index 16b1d24d6..964a2f256 100644 --- a/itl/command-plugins.conf +++ b/itl/command-plugins.conf @@ -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" -- 2.49.0