]> granicus.if.org Git - icinga2/commitdiff
ITL: Fix mitigation attribute for nwc_health
authorDirk Goetz <dirk.goetz@netways.de>
Thu, 16 Mar 2017 10:12:20 +0000 (11:12 +0100)
committerMichael Friedrich <michael.friedrich@icinga.com>
Wed, 22 Mar 2017 10:15:58 +0000 (11:15 +0100)
fixes #5075

Signed-off-by: Michael Friedrich <michael.friedrich@icinga.com>
doc/10-icinga-template-library.md
itl/plugins-contrib.d/network-components.conf

index d88b168a04d8e2d947fb673f2216f843c3a46df6..59fe18352fc7cb3fb058c1457ade4a12ffe336ec 100644 (file)
@@ -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.
index 4d3e8cb3eb200558f4d8ac6be0f13536440f364a..8faa708438a4afa44ba5699b881ccd34bfc92b86 100644 (file)
@@ -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" = {