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 %}