From a7136b6f5cd39f146c9123d56cb0b5bbfc493d9c Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Mon, 31 Mar 2014 08:48:01 +0200 Subject: [PATCH] Use $HOSTADDRESS$ in the ITL commands. Fixes #5895 --- itl/command-common.conf | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/itl/command-common.conf b/itl/command-common.conf index 8c54cca8c..e6b007554 100644 --- a/itl/command-common.conf +++ b/itl/command-common.conf @@ -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$" ], -- 2.40.0