]> granicus.if.org Git - icinga2/commitdiff
Fix missing IPv6 support in 'iftraffic' check command
authorMichael Friedrich <michael.friedrich@netways.de>
Wed, 13 May 2015 12:19:20 +0000 (14:19 +0200)
committerMichael Friedrich <michael.friedrich@netways.de>
Wed, 13 May 2015 12:58:18 +0000 (14:58 +0200)
refs #9272

itl/plugins-contrib.d/network-components.conf

index 8345dcbb4fe27682a19b1a6e16dc99244a9889ec..1c243abe99720ef8732fe003670bd266c95e26b0 100644 (file)
@@ -294,6 +294,8 @@ object CheckCommand "interfacetable" {
 
 object CheckCommand "iftraffic" {
        import "plugin-check-command"
+       import "ipv4-or-ipv6"
+
        command = [ PluginDir + "/check_iftraffic64.pl"]
 
        arguments = {
@@ -334,7 +336,7 @@ object CheckCommand "iftraffic" {
                }
        }
 
-       vars.iftraffic_address = "$address$"
+       vars.iftraffic_address = "$check_address$"
        vars.iftraffic_warn = "85%"
        vars.iftraffic_crit = "98%"
 }