]> granicus.if.org Git - icinga2/commitdiff
Use $HOSTADDRESS$ in the ITL commands.
authorGunnar Beutner <gunnar.beutner@netways.de>
Mon, 31 Mar 2014 06:48:01 +0000 (08:48 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Mon, 31 Mar 2014 06:48:01 +0000 (08:48 +0200)
Fixes #5895

itl/command-common.conf

index 8c54cca8ca5575102e0761f58be3592d730334b2..e6b007554a9bcec45aa1b00a7951422af48b9acd 100644 (file)
@@ -23,7 +23,7 @@ object CheckCommand "ping4" {
        command = [
                "$plugindir$/check_ping",
                "-4",
-               "-H", "$address$",
+               "-H", "$HOSTADDRESS$",
                "-w", "$wrta$,$wpl$%",
                "-c", "$crta$,$cpl$%",
                "-p", "$packets$",
@@ -48,7 +48,7 @@ object CheckCommand "ping6" {
        command = [
                "$plugindir$/check_ping",
                "-6",
-               "-H", "$address6$",
+               "-H", "$HOSTADDRESS6$",
                "-w", "$wrta$,$wpl$%",
                "-c", "$crta$,$cpl$%",
                "-p", "$packets$",
@@ -96,7 +96,7 @@ object CheckCommand "tcp" {
 
        command = [
                "$plugindir$/check_tcp",
-               "-H", "$address$",
+               "-H", "$HOSTADDRESS$",
                "-p", "$port$"
        ]
 }
@@ -106,7 +106,7 @@ object CheckCommand "udp" {
 
        command = [
                "$plugindir$/check_udp",
-               "-H", "$address$",
+               "-H", "$HOSTADDRESS$",
                "-p", "$port$"
        ]
 }
@@ -125,7 +125,7 @@ object CheckCommand "http_ip" {
 
        command = [
                "$plugindir$/check_http",
-               "-H", "$address$"
+               "-H", "$HOSTADDRESS$"
        ]
 }
 
@@ -143,7 +143,7 @@ object CheckCommand "https_ip" {
 
        command = [
                "$plugindir$/check_http",
-               "-I", "$address$", "-S"
+               "-I", "$HOSTADDRESS$", "-S"
        ]
 }
 
@@ -152,7 +152,7 @@ object CheckCommand "smtp" {
 
        command = [
                "$plugindir$/check_smtp",
-               "-H", "$address$"
+               "-H", "$HOSTADDRESS$"
        ]
 }
 
@@ -161,7 +161,7 @@ object CheckCommand "ssmtp" {
 
        command = [
                "$plugindir$/check_ssmtp",
-               "-H", "$address$",
+               "-H", "$HOSTADDRESS$",
                "-p", "$port$"
        ],
 
@@ -175,7 +175,7 @@ object CheckCommand "ntp_time" {
 
        command = [
                "$plugindir$/check_ntp_time",
-               "-H", "$address$"
+               "-H", "$HOSTADDRESS$"
        ]
 }
 
@@ -184,7 +184,7 @@ object CheckCommand "ssh" {
 
        command = [
                "$plugindir$/check_ssh",
-               "$address$"
+               "$HOSTADDRESS$"
        ]
 }
 
@@ -258,7 +258,7 @@ object CheckCommand "snmp"{
 
        command = [
                "$plugindir$/check_snmp",
-               "-H", "$address$",
+               "-H", "$HOSTADDRESS$",
                "-o", "$oid$",
                "-C", "$community$"
        ],