I installed Munin in a Ubuntu Server 14.04 with Apache 2.4.7

But after all configuration, Munin isn't creating the html files in the html dir. This are my files:


dbdir     /var/lib/munin
htmldir   /var/www/www/munin  
logdir    /var/log/munin
rundir    /var/run/munin

# Where to look for the HTML templates
tmpldir /etc/munin/templates

    use_node_name yes

And my apache.conf

    Alias /munin /var/www/www/munin
<Directory /var/www/www/munin>
        #Order allow,deny
        #Allow from localhost ::1
        #Options None
    Require all granted
        Options FollowSymLinks SymLinksIfOwnerMatch
    # 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


But when i go to myip/munin i have a 403 Forbidden. And looking into /var/www/www/munin theres no files in it. (Before that, i had /var/www/munin but doesn't work anyway).

Any hints?

  • Does its user have write access to that location? – ceejayoz Oct 29 '15 at 17:02
  • @ceejayoz Yeah. User is the owner. And the permissions of the dir are: drwxr-xr-x – Santiago Mendoza Ramirez Oct 29 '15 at 18:14

First, is this a typo: htmldir /var/www/www/munin

If it is, let's make sure the munin user has access to the directory. To test it:

  1. Make /var/www/munin owned by munin:

    $ sudo chown munin: /var/www/munin 
  2. Run a job manually and check the output for errors:

    $ sudo sudo -u munin /usr/bin/munin-cron --debug 2>&1 | less
  • It's not a typo. I found here: serverfault.com/a/632633/304356 that he change de htmldir and Munin start to work. So, I change htmldir from /var/www/munin to /var/www/www/munin but still don't work. – Santiago Mendoza Ramirez Oct 29 '15 at 18:13
  • Have you tried changing the owner of /var/www/munin and seeing that helps? – Belmin Fernandez Oct 29 '15 at 18:30
  • To what user? I tried to delete and create munin user again, but nothing happen. – Santiago Mendoza Ramirez Oct 29 '15 at 19:47
  • Try running the command listed under #2 above. Look for the part where it's generating HTML pages and check for errors. – Belmin Fernandez Oct 29 '15 at 20:12
  • Well. Looking to that file i found that de html files are in /opt/munin/www/docs. I don't have any idea why. – Santiago Mendoza Ramirez Oct 29 '15 at 21:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.