From 94f6d45d07b2ed42a3428ae1e7941392211045f5 Mon Sep 17 00:00:00 2001 From: Salt Date: Sun, 15 Aug 2021 02:43:59 -0500 Subject: [PATCH] Fix HTTP checks that redirect to TLS connections failing --- playbooks/tasks/web/nagios-hosts.cfg.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playbooks/tasks/web/nagios-hosts.cfg.j2 b/playbooks/tasks/web/nagios-hosts.cfg.j2 index 6677ce8..7a52df0 100644 --- a/playbooks/tasks/web/nagios-hosts.cfg.j2 +++ b/playbooks/tasks/web/nagios-hosts.cfg.j2 @@ -119,7 +119,7 @@ define host { define service { use ansible-generic-service service_description HTTP - {{ service.value.name }} - check_command check_http!-H {{ service.value.name }} -f stickyport + check_command check_http!-H {{ service.value.name }} -f sticky host_name {{ host_name }} } {% endif %} @@ -127,7 +127,7 @@ define service { define service { use ansible-generic-service service_description HTTPS - {{ service.value.name }} - check_command check_http!--ssl -H {{ service.value.name }} -f stickyport + check_command check_http!--ssl -H {{ service.value.name }} -f sticky host_name {{ host_name }} } {% endif %}