From f169232ef29255dfe30cf3a2b4f73f4f0a97f3b1 Mon Sep 17 00:00:00 2001 From: Dirk Goetz Date: Thu, 16 Mar 2017 11:12:20 +0100 Subject: [PATCH] ITL: Fix mitigation attribute for nwc_health fixes #5075 Signed-off-by: Michael Friedrich --- doc/10-icinga-template-library.md | 2 +- itl/plugins-contrib.d/network-components.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/10-icinga-template-library.md b/doc/10-icinga-template-library.md index d88b168a0..59fe18352 100644 --- a/doc/10-icinga-template-library.md +++ b/doc/10-icinga-template-library.md @@ -2576,7 +2576,7 @@ nwc_health_warning | **Optional.** The warning threshold nwc_health_critical | **Optional.** The critical threshold nwc_health_warningx | **Optional.** The extended warning thresholds nwc_health_criticalx | **Optional.** The extended critical thresholds -nwc_health_mitigation | **Optional.** The parameter allows you to change a critical error to a warning. +nwc_health_mitigation | **Optional.** The parameter allows you to change a critical error to a warning (1) or ok (0). nwc_health_selectedperfdata | **Optional.** The parameter allows you to limit the list of performance data. It's a perl regexp. Only matching perfdata show up in the output. nwc_health_morphperfdata | **Optional.** The parameter allows you to change performance data labels. It's a perl regexp and a substitution. --morphperfdata '(.*)ISATAP(.*)'='$1patasi$2' nwc_health_negate | **Optional.** The parameter allows you to map exit levels, such as warning=critical. diff --git a/itl/plugins-contrib.d/network-components.conf b/itl/plugins-contrib.d/network-components.conf index 4d3e8cb3e..8faa70843 100644 --- a/itl/plugins-contrib.d/network-components.conf +++ b/itl/plugins-contrib.d/network-components.conf @@ -632,7 +632,7 @@ object CheckCommand "nwc_health" { description = "The extended critical thresholds" } "--mitigation" = { - set_if = "$nwc_health_mitigation$" + value = "$nwc_health_mitigation$" description = "The parameter allows you to change a critical error to a warning." } "--selectedperfdata" = {