Package: munin
Version: 1.999.4508-1
Severity: normal
Tags: experimental

The instructions on http://munin-monitoring.org/wiki/CgiHowto for the 
munin-cgi-html
feature are not accurate for a number of reasons:

1. The paths are wrong.  There seems to be a disconnect between the new default 
apache.conf
file and the HOWTO.  The default apache.conf wants to go to 
/var/cache/munin/www/static for
the static images, which is actually wrong, so the HOWTO's Alias is correct in 
this case.
However, the Rewrites to /cgi-bin/munin-cgi-html is unneccesary if there is 
going to be an
Alias to /munin-cgi.  See my apache.conf below.

2. RewriteEngine will not turn on unless it's turned on from the VirtualHost 
statement.  Per
http://httpd.apache.org/docs/current/mod/mod_rewrite.html#vhosts:

By default, mod_rewrite configuration settings from the main server context are 
not
inherited by virtual hosts. To make the main server settings apply to virtual 
hosts, you
must place the following directives in each <VirtualHost> section:

RewriteEngine On
RewriteOptions Inherit 

This was driving me crazy until I saw this and put the two statements in my 
VirtualHost
entry.  Everything worked after that.

3. It recommends commenting out the munin-html line.  As you can see from the 
last line of
this email, Debian doesn't really like that.  Could munin-html simply check the 
config and
exit if it's set to munin-cgi-html?

-- System Information:
Debian Release: 6.0.3
  APT prefers testing
  APT policy: (1000, Security), (995, 'stable'), (750, 'testing'), (50, 
'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.18-128.7.1.el5xen (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages munin depends on:
ii  adduser                3.112+nmu2        add and remove users and groups
ii  cron                   3.0pl1-116        process scheduling daemon
ii  libcgi-fast-perl       5.10.1-17squeeze2 CGI::Fast Perl module
ii  libdate-manip-perl     6.11-1            module for manipulating dates
pn  libdigest-md5-perl     <none>            (no description available)
ii  libfile-copy-recursive 0.38-1            Perl extension for recursively cop
ii  libhtml-template-perl  2.9-2             module for using HTML Templates wi
ii  libio-socket-inet6-per 2.65-1.1          Object interface for AF_INET6 doma
ii  liblog-log4perl-perl   1.29-1            A Perl port of the widely popular 
ii  librrds-perl           1.4.3-1           time-series data storage and displ
pn  libstorable-perl       <none>            (no description available)
ii  liburi-perl            1.54-2            module to manipulate and access UR
ii  munin-common           1.999.4508-1      network-wide graphing framework (c
ii  perl [libtime-hires-pe 5.10.1-17squeeze2 Larry Wall's Practical Extraction 
ii  perl-modules           5.10.1-17squeeze2 Core Perl modules
ii  rrdtool                1.4.3-1           time-series data storage and displ
ii  ttf-dejavu             2.31-1            Metapackage to pull in ttf-dejavu-

Versions of packages munin recommends:
ii  munin-node                  1.999.4508-1 network-wide graphing framework (n

Versions of packages munin suggests:
ii  apache2-mpm-prefork [h 2.2.16-6+squeeze4 Apache HTTP Server - traditional n
ii  elinks [www-browser]   0.12~pre5-2       advanced text-mode WWW browser
ii  iceweasel [www-browser 3.5.16-11         Web browser based on Firefox
ii  libnet-ssleay-perl     1.36-1            Perl module for Secure Sockets Lay
ii  lynx-cur [www-browser] 2.8.8dev.5-1      Text-mode WWW Browser with NLS sup

-- Configuration Files:
/etc/munin/apache.conf changed:
Alias /munin /var/cache/munin/www
Alias /munin-static /etc/munin/static
ScriptAlias /munin-cgi /usr/lib/cgi-bin/munin-cgi-html
<IfModule mod_rewrite.c>
    RewriteEngine on
    # Uncomment the following to redirect old, static URLs to the CGI-HTML
    RewriteRule /munin/(.*) /munin-cgi/$1               [R=301,L]
    RewriteRule /munin-cgi$ /munin-cgi/                 [R=301,L]
    RewriteRule /munin-cgi/static/(.*) /munin-static/$1 [R=301,L]
    #RewriteLog "/var/log/apache2/rewrite.log" 
    #RewriteLogLevel 4
</IfModule>
<Directory /var/cache/munin/www>
        Order allow,deny
        Allow from localhost 127.0.0.0/8 ::1
        Allow from 74.128.0.0/12
        Options None
        # This file can be used as a .htaccess file, or a part of your apache
        # config file.
        #
        # For the .htaccess file option to work the munin www directory
        # (/var/cache/munin/www) must have "AllowOverride all" or something 
        # close to that set.
        #
        # AuthUserFile /etc/munin/munin-htpasswd
        # AuthName "Munin"
        # AuthType Basic
        # require valid-user
        # This next part requires mod_expires to be enabled.
        #
        
        # Set the default expiration time for files to 5 minutes 10 seconds from
        # their creation (modification) time.  There are probably new files by
        # that time. 
        #
    <IfModule mod_expires.c>
        ExpiresActive On
        ExpiresDefault M310
    </IfModule>
</Directory> 
<Location /munin-cgi>
    <IfModule mod_fastcgi.c>
        SetHandler fastcgi-script
    </IfModule>
</Location>
<Location /munin-cgi/static>
        SetHandler None
</Location>
<Location /cgi-bin/munin-cgi-html>
    <IfModule mod_fastcgi.c>
        SetHandler fastcgi-script
    </IfModule>
</Location>
<Location /cgi-bin/munin-cgi-graph>
    <IfModule mod_fastcgi.c>
        SetHandler fastcgi-script
    </IfModule>
</Location>

/etc/munin/munin.conf changed:
includedir /etc/munin/munin-conf.d


-- no debconf information

-- debsums errors found:
debsums: changed file /usr/bin/munin-cron (from munin package)



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