]> granicus.if.org Git - icinga2/commitdiff
Fix check_command interfaces, change option match_aliases to boolean
authorLennart Betz <lennart.betz@netways.de>
Sun, 16 Aug 2015 15:00:25 +0000 (17:00 +0200)
committerGunnar Beutner <gunnar@beutner.name>
Mon, 17 Aug 2015 06:54:53 +0000 (08:54 +0200)
fixes #9912

Signed-off-by: Gunnar Beutner <gunnar@beutner.name>
itl/plugins-contrib.d/network-components.conf

index 391b37fc28917a04a92abb8984fb32374c987a21..09df9bcfc664eb5e45d7f025bfddfc3f601a7eb4 100644 (file)
@@ -425,7 +425,7 @@ object CheckCommand "interfaces" {
                        description = "Retrieves the interface description."
                }
                "--match-aliases" = {
-                       value = "$interfaces_match_aliases$"
+                       set_if = "$interfaces_match_aliases$"
                        description = "Also match against aliases (Option --aliases automatically enabled)."
                }
                "--timeout" = {
@@ -439,4 +439,7 @@ object CheckCommand "interfaces" {
        }
 
        vars.interfaces_address = "$check_address$"
+       vars.interfaces_down_is_ok = false
+       vars.interfaces_aliases = false
+       vars.interfaces_match_aliases = false
 }