]> granicus.if.org Git - icinga2/commitdiff
Move fping_address to command array because it must always be the first argument
authorTobias von der Krone <tobias@vonderkrone.info>
Thu, 11 Sep 2014 06:55:59 +0000 (08:55 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Thu, 11 Sep 2014 07:34:20 +0000 (09:34 +0200)
fixes #7168

itl/command-plugins.conf

index d33b05453bc27802f6f9ec5121daf7caff831d97..7970e8d0f76803ee13344ae1e3a17f5cd44e8870 100644 (file)
@@ -66,14 +66,12 @@ object CheckCommand "hostalive" {
 template CheckCommand "fping-common" {
        import "plugin-check-command"
 
-       command = [ PluginDir + "/check_fping" ]
+       command = [
+               PluginDir + "/check_fping",
+               "$fping_address$"
+       ]
 
        arguments = {
-               "host" = {
-                       value = "$fping_address$"
-                       skip_key = true
-                       order = 0
-               }
                "-w" = "$fping_wrta$,$fping_wpl$%"
                "-c" = "$fping_crta$,$fping_cpl$%"
                "-n" = "$fping_number$"