Package: munin-plugins-core
Version: 2.0.67-3
Tags: patch
Hi,
I noticed that the example configuration included in the nginx_* plugins
does not work. Nowadays, localhost tends to resolve to ::1 and with the
example configuration, this yields an error. Thus, it would be good to
also listen on the ipv6 loopback to make it work. I'm attaching a patch.
Helmut
--- munin-2.999.16.orig/plugins/node.d/nginx_request
+++ munin-2.999.16/plugins/node.d/nginx_request
@@ -22,11 +22,13 @@ compiled, and secondly it must be config
server {
listen 127.0.0.1;
+ listen [::1];
server_name localhost;
location /nginx_status {
stub_status on;
access_log off;
allow 127.0.0.1;
+ allow ::1;
deny all;
}
}
--- munin-2.999.16.orig/plugins/node.d/nginx_status
+++ munin-2.999.16/plugins/node.d/nginx_status
@@ -21,11 +21,13 @@ compiled, and secondly it must be config
server {
listen 127.0.0.1;
+ listen [::1];
server_name localhost;
location /nginx_status {
stub_status on;
access_log off;
allow 127.0.0.1;
+ allow ::1;
deny all;
}
}