Package: munin-node
Severity: normal

Hi! nginx_request does not work, the plugin recommends configure
nginx with:

  server {
        listen 127.0.0.1;
        server_name localhost;
        location /nginx_status {
                stub_status on;
                access_log   off;
                allow 127.0.0.1;
                deny all;
        }
  }

But, when the plugin try to obtain data, it does:

chomp(my $fqdn=`hostname -f 2>/dev/null | hostname`);

my $URL = exists $ENV{'url'} ? $ENV{'url'} : "http://$fqdn/nginx_status";;

And $fqdn is not localhost, so the plugin doesnt work.

I think the best option is patch this plugin to work as nginx_status works, 
using
localhost instead of $fqdn

my $URL = exists $ENV{'url'} ? $ENV{'url'} : "http://localhost/nginx_status";;

Thanks for your work!

-- System Information:
Debian Release: 6.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: powerpc (ppc)

Kernel: Linux 2.6.32-5-powerpc
Locale: LANG=es_ES.utf8, LC_CTYPE=es_ES.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages munin-node depends on:
ii  adduser                   3.112+nmu2     add and remove users and groups
ii  gawk                      1:3.1.7.dfsg-5 GNU awk, a pattern scanning and pr
pn  libnet-server-perl        <none>         (no description available)
ii  lsb-base                  3.2-27         Linux Standard Base 3.2 init scrip
pn  munin-common              <none>         (no description available)
ii  perl                      5.10.1-17      Larry Wall's Practical Extraction 
ii  procps                    1:3.2.8-10     /proc file system utilities

Versions of packages munin-node recommends:
pn  libnet-snmp-perl              <none>     (no description available)

Versions of packages munin-node suggests:
ii  ethtool                 1:2.6.34-3       display or change Ethernet device 
ii  hdparm                  9.32-1           tune hard disk parameters for high
pn  libcache-cache-perl     <none>           (no description available)
ii  libcrypt-ssleay-perl    0.57-2           Support for https protocol in LWP
ii  libdbd-mysql-perl       4.016-1          Perl5 database interface to the My
pn  libdbd-pg-perl          <none>           (no description available)
pn  liblwp-useragent-determ <none>           (no description available)
pn  libnet-irc-perl         <none>           (no description available)
ii  libnet-ssleay-perl      1.36-1           Perl module for Secure Sockets Lay
ii  libtext-csv-xs-perl     0.80-1           Perl C/XS module to process Comma-
ii  libwww-perl             5.837-1          simple and consistent interface to
ii  libxml-simple-perl      2.18-3           Perl module for reading and writin
ii  lm-sensors              1:3.1.2-6        utilities to read temperature/volt
pn  logtail                 <none>           (no description available)
pn  munin                   <none>           (no description available)
pn  munin-java-plugins      <none>           (no description available)
pn  munin-plugins-extra     <none>           (no description available)
ii  mysql-client-5.1 [mysql 5.1.49-3         MySQL database client binaries
ii  net-tools               1.60-23          The NET-3 networking toolkit
ii  python                  2.6.6-3+squeeze5 interactive high-level object-orie
ii  ruby                    4.5              An interpreter of object-oriented 
pn  smartmontools           <none>           (no description available)



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to