[projects/nagios-config] Use HOSTNAME instead of HOSTADDRESS (which can be IP).
arekm
arekm at pld-linux.org
Sun Aug 20 21:33:55 CEST 2017
commit 1d7f8500371093226bab846c0912c64458884369
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sun Aug 20 21:33:52 2017 +0200
Use HOSTNAME instead of HOSTADDRESS (which can be IP).
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 9b5c4a4..f779d49 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$ -H $HOSTADDRESS$ -f warning $ARG1$
+ command_line /usr/lib/nagios/plugins/check_http -I $HOSTADDRESS$ -H $HOSTNAME$ -f warning $ARG1$
}
define command {
command_name check_https
- command_line /usr/lib/nagios/plugins/check_http -I $HOSTADDRESS$ -H $HOSTADDRESS$ -f warning -S $ARG1$
+ command_line /usr/lib/nagios/plugins/check_http -I $HOSTADDRESS$ -H $HOSTNAME$ -f warning -S $ARG1$
}
define command {
command_name check_https.crt
- command_line /usr/lib/nagios/plugins/check_http -I $HOSTADDRESS$ -H $HOSTADDRESS$ -S -C 14 $ARG1$
+ command_line /usr/lib/nagios/plugins/check_http -I $HOSTADDRESS$ -H $HOSTNAME$ -S -C 14 $ARG1$
}
define service {
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/nagios-config.git/commitdiff/1d7f8500371093226bab846c0912c64458884369
More information about the pld-cvs-commit
mailing list