[projects/nagios-config] Make plugin set Host header for name based virtual hosting.

arekm arekm at pld-linux.org
Sun Aug 20 21:26:50 CEST 2017


commit 4806aae605c3c31a7b99063f15bcd860fb1a4c86
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sun Aug 20 21:26:45 2017 +0200

    Make plugin set Host header for name based virtual hosting.

 commands/check_http.cfg | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/commands/check_http.cfg b/commands/check_http.cfg
index a588922..9b5c4a4 100644
--- a/commands/check_http.cfg
+++ b/commands/check_http.cfg
@@ -1,17 +1,17 @@
 # 'check_http' command definition
 define command {
 	command_name    check_http
-	command_line    /usr/lib/nagios/plugins/check_http -I $HOSTADDRESS$ -f warning $ARG1$
+	command_line    /usr/lib/nagios/plugins/check_http -I $HOSTADDRESS$ -H $HOSTADDRESS$ -f warning $ARG1$
 }
 
 define command {
 	command_name    check_https
-	command_line    /usr/lib/nagios/plugins/check_http -I $HOSTADDRESS$ -f warning -S $ARG1$
+	command_line    /usr/lib/nagios/plugins/check_http -I $HOSTADDRESS$ -H $HOSTADDRESS$ -f warning -S $ARG1$
 }
 
 define command {
 	command_name    check_https.crt
-	command_line    /usr/lib/nagios/plugins/check_http -I $HOSTADDRESS$ -S -C 14 $ARG1$
+	command_line    /usr/lib/nagios/plugins/check_http -I $HOSTADDRESS$ -H $HOSTADDRESS$ -S -C 14 $ARG1$
 }
 
 define service {
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/nagios-config.git/commitdiff/4806aae605c3c31a7b99063f15bcd860fb1a4c86



More information about the pld-cvs-commit mailing list