Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 31st May 2008, 23:07
lordshadow lordshadow is offline
Member
 
Join Date: Apr 2008
Posts: 89
Thanks: 0
Thanked 0 Times in 0 Posts
Default Munin, Monit, Webalizer need help!

Hi, I've read through the howto's on these programs but I'm having a bit of trouble with them:

Munin gives me this error: Error writing to /var/run/munin/munin-update.lock, wrong permissions at /usr/share/perl5/Munin.pm line 356.

Which I can't work out what is as it's not displaying any local or remote host graphs.

I would also like to password Munin and Webalizer, however by trying the howto it didn't work. I'm not sure where the problem was.

The last issue I have is Monit which gives me a page saying Index of /monit then a token file. But it isn't showing any graphs of systems processes

I hope someone can help me - I am running Debian Etch

Thanks
Reply With Quote
Sponsored Links
  #2  
Old 1st June 2008, 01:02
Leszek Leszek is offline
Senior Member
 
Join Date: Nov 2006
Location: Poland,Włocławek
Posts: 369
Thanks: 22
Thanked 42 Times in 35 Posts
Send a message via Skype™ to Leszek
Default

Quote:
Munin gives me this error: Error writing to /var/run/munin/munin-update.lock, wrong permissions at /usr/share/perl5/Munin.pm line 356.
Does the directory which htmldir in /etc/munin/munin.conf points to belong to munin (user and group) and is writeable by him ?
Quote:
I would also like to password Munin and Webalizer, however by trying the howto it didn't work. I'm not sure where the problem was.
Any errors in Apache's logs? Is Your server/virtual host configured to read configuration from .htaccess files?
Reply With Quote
  #3  
Old 1st June 2008, 14:28
lordshadow lordshadow is offline
Member
 
Join Date: Apr 2008
Posts: 89
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the reply Leszek, I managed to get Munin sorted out and wokring as it was just a matter of sorting out permissions.

As far as password is concerned for Webalizer, Munin and Monit not working I don't have any errors in my apache log. There was one but it wasn't to do with these; one for python and the other for perl which it said was sorted.
Reply With Quote
  #4  
Old 1st June 2008, 15:25
Leszek Leszek is offline
Senior Member
 
Join Date: Nov 2006
Location: Poland,Włocławek
Posts: 369
Thanks: 22
Thanked 42 Times in 35 Posts
Send a message via Skype™ to Leszek
Default

Do You have "AllowOverride All" directive in the configuration of Apache of a particular Virtual Host that doesn't accept .htaccess files ? I mean the <directory> </directory> part. For example:
Code:
<Directory /var/www/>        
        Options Indexes FollowSymLinks MultiViews
        Order allow,deny
        allow from all
        AllowOverride all
    </Directory>
Later You can decide if You need "AllowOverride all" or maybe something else.
Reply With Quote
  #5  
Old 1st June 2008, 16:02
lordshadow lordshadow is offline
Member
 
Join Date: Apr 2008
Posts: 89
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi, sorry I forgot to mention that I'm not using virtual domains!

Just standard /var/www dir with index.html in it
Reply With Quote
  #6  
Old 1st June 2008, 18:04
Leszek Leszek is offline
Senior Member
 
Join Date: Nov 2006
Location: Poland,Włocławek
Posts: 369
Thanks: 22
Thanked 42 Times in 35 Posts
Send a message via Skype™ to Leszek
Default

The same applies for global configuration.
You'll have to look for something I mentioned earlier.
Reply With Quote
  #7  
Old 1st June 2008, 19:43
lordshadow lordshadow is offline
Member
 
Join Date: Apr 2008
Posts: 89
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This is the current configuration in the sites-enabled dir:

ServerAdmin root@localhost

DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
#RedirectMatch ^/$ /apache2-default/
</Directory>
Reply With Quote
  #8  
Old 1st June 2008, 22:30
Leszek Leszek is offline
Senior Member
 
Join Date: Nov 2006
Location: Poland,Włocławek
Posts: 369
Thanks: 22
Thanked 42 Times in 35 Posts
Send a message via Skype™ to Leszek
Default

Then change "AllowOverride None" to "AllowOverride All" so it looks like this:

Code:
ServerAdmin root@localhost

        DocumentRoot /var/www/
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
                # This directive allows us to have apache2's default start page
                # in /apache2-default/, but still have / go to the right place
                #RedirectMatch ^/$ /apache2-default/
        </Directory>
Reply With Quote
  #9  
Old 3rd June 2008, 19:55
lordshadow lordshadow is offline
Member
 
Join Date: Apr 2008
Posts: 89
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sorry for the alte reply I got kinda caught up with work!

Ok, I think I understand the problem; I followed the howto but it didn't work for me as creating a file called .htaccess and .htpasswd in the munin folder did nothing.

I discovered this howto: http://www.debian-administration.org/articles/597 from Debian Admin which almost works for me now

Just the problem is that when I enter the username and password now I get an error message saying: Forbidden - you do not have permission to access munin on this server.

Can you suggest anything??
Reply With Quote
  #10  
Old 3rd June 2008, 23:46
Leszek Leszek is offline
Senior Member
 
Join Date: Nov 2006
Location: Poland,Włocławek
Posts: 369
Thanks: 22
Thanked 42 Times in 35 Posts
Send a message via Skype™ to Leszek
 
Default

Maybe You should try to regenerate the password ?
Maybe You've made a typo ?
If You include:
Quote:
Alias /munin /var/www/munin/

<directory /var/www/munin/>
AllowOverride None
Options ExecCGI FollowSymlinks
AddHandler cgi-script .cgi
DirectoryIndex index.cgi
AuthUserFile /etc/munin/munin.passwd
AuthType basic
AuthName "Munin stats"
require valid-user
</directory>
in Apache's configuration then You don't need the .htaccess file.

Last edited by Leszek; 3rd June 2008 at 23:49.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ASSP hook for Server Monitoring With munin And monit Slicer HOWTO-Related Questions 2 19th December 2006 20:38
Server Monitoring With munin And monit kdclaver Installation/Configuration 3 14th December 2006 18:52
Munin & Monit Hans Server Operation 16 6th November 2006 17:38
Extension for the monit and munin programs(tut from falko) ColdDoT Server Operation 7 4th May 2006 11:37
Server Monitoring With munin And monit - Page 2 Hans Server Operation 6 28th April 2006 16:17


All times are GMT +2. The time now is 20:58.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.