HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   HOWTO-Related Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=2)
-   -   Munin, Monit, Webalizer need help! (http://www.howtoforge.com/forums/showthread.php?t=23803)

lordshadow 1st June 2008 00:07

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

Leszek 1st June 2008 02:02

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?

lordshadow 1st June 2008 15:28

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.

Leszek 1st June 2008 16:25

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.

lordshadow 1st June 2008 17:02

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

Just standard /var/www dir with index.html in it

Leszek 1st June 2008 19:04

The same applies for global configuration.
You'll have to look for something I mentioned earlier.

lordshadow 1st June 2008 20:43

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>

Leszek 1st June 2008 23:30

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>


lordshadow 3rd June 2008 20:55

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

Leszek 4th June 2008 00:46

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.


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

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