Installing Munin

Since my server's always crashing due to the CPU maxing out, I'm trying to install munin to try and find out why. I followed the guide here http://library.linode.com/server-monito … an-5-lenny">http://library.linode.com/server-monitoring/munin/debian-5-lenny and when I run the command a2ensite munin.mysite.be I get:````
site:/etc# a2ensite munin.site.be
ERROR: Site munin.site.be does not exist!

Site.be does exist and I added the munin subdomain via virtualmin. I also added an A-record in the DNS manager. When I access munin.site.be I just see a````
Forbidden you don't have permission to access / on this server

So AFAIK the subdomain does "exist".

Can anyone guide me to finish the munin installation?

My hosts file:

site:/etc# vim /etc/hosts

127.0.0.1 localhost site
178.79.129.192 site.site.eu site.eu

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
 <virtualhost 127.0.0.1:80="">ServerAdmin me@gmail.com
   ServerName munin.site.be
   DocumentRoot /var/www/munin
   <directory>Options FollowSymLinks
       AllowOverride None</directory> 
   LogLevel notice
   CustomLog /var/log/apache2/access.log combined
   ErrorLog /var/log/apache2/error.log
   ServerSignature On</virtualhost> 

5 Replies

Last part in your hosts file is wrong. You must take it off because those lines are Apache vhost config.

Library says you should put that in something like /etc/apache2/sites-available/stats.ducklington.org (change it to your domain)

vim munin.site.be.conf now shows this below but I still get Forbidden. You don't have permission to access / on this server.

 <virtualhost 127.0.0.1:80="">ServerAdmin sme@gmail.com
   ServerName munin.site.be
   DocumentRoot /var/www/munin
   <directory>Options FollowSymLinks
       AllowOverride None</directory> 
   LogLevel notice
   CustomLog /var/log/apache2/access.log combined
   ErrorLog /var/log/apache2/error.log
   ServerSignature On</virtualhost> 

Tutoria says: instead 127.0.0.1. If it doesn't work, look at /var/log/apache2/error.log

Sorry to pick this up again so late. When I run

a2ensite munin.site.be

I get:

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_CTYPE = "UTF-8",
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
ERROR: Site munin.site.be does not exist!

When I visit munin.site.be I just see one of the sites that's hosted on my server.

Can anyone tell me how to finish the Munin installation or how I can debug the problem?

First error: use "dpkg-reconfigure locales" to select your locales.

Second: a2ensite name <– that name must be a file in /etc/apache2/sites-available, with the vhost config

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct