From e65218084259e91f6f44c10e715b13a525e0a16f Mon Sep 17 00:00:00 2001 From: Robin Schneider Date: Thu, 26 Nov 2015 10:02:28 +0100 Subject: [PATCH] nginx_status plguin: Fixed try_detect_servers for IPv6 loopback. Related to https://github.com/debops-contrib/ansible-checkmk_agent/pull/3 --- agents/plugins/nginx_status | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agents/plugins/nginx_status b/agents/plugins/nginx_status index fe0ec0055..2250e4e1f 100755 --- a/agents/plugins/nginx_status +++ b/agents/plugins/nginx_status @@ -89,7 +89,7 @@ def try_detect_servers(): if address == '0.0.0.0': address = '127.0.0.1' elif address == '::': - address = '::1' + address = '[::1]' # Switch protocol if port is SSL port. In case you use SSL on another # port you would have to change/extend the ssl_port list