Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Installing Munin
PostPosted: Thu Oct 20, 2011 9:54 am 
Offline
Junior Member

Joined: Tue Jan 12, 2010 6:37 am
Posts: 33
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 and when I run the command
Code:
a2ensite munin.mysite.be
I get:
Code:
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
Code:
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:

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


Top
   
 Post subject:
PostPosted: Thu Oct 20, 2011 11:05 am 
Offline
Senior Member

Joined: Mon Dec 20, 2010 11:37 pm
Posts: 76
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)


Top
   
 Post subject:
PostPosted: Fri Oct 21, 2011 3:43 am 
Offline
Junior Member

Joined: Tue Jan 12, 2010 6:37 am
Posts: 33
vim munin.site.be.conf now shows this below but I still get Forbidden. You don't have permission to access / on this server.

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


Top
   
 Post subject:
PostPosted: Fri Oct 21, 2011 6:34 am 
Offline
Senior Member

Joined: Mon Dec 20, 2010 11:37 pm
Posts: 76
Tutoria says: <VirtualHost "external_IP":80> instead 127.0.0.1. If it doesn't work, look at /var/log/apache2/error.log


Top
   
 Post subject:
PostPosted: Thu Nov 10, 2011 5:57 am 
Offline
Junior Member

Joined: Tue Jan 12, 2010 6:37 am
Posts: 33
Sorry to pick this up again so late. When I run

Code:
a2ensite munin.site.be


I get:

Code:
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?


Top
   
 Post subject:
PostPosted: Thu Nov 10, 2011 7:13 am 
Offline
Senior Member

Joined: Mon Dec 20, 2010 11:37 pm
Posts: 76
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


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group