#1  
Old 6th October 2008, 11:03
rslinks rslinks is offline
Junior Member
 
Join Date: Oct 2008
Posts: 10
Thanks: 2
Thanked 0 Times in 0 Posts
Default munin help

Hi,
I use your helpful guide for how to monitoring the server with munin.
But I have problems...

When I'm trying to access munin through the browser (rslinks.org/monitoring)I get "You don't have permission to access /monitoring/ on this serve"
My munin configure file:

dbdir /var/lib/munin
htmldir /var/www/vhosts/rslinks.org/httpdocs/monitoring
logdir /var/log/munin
rundir /var/run/munin

[rslinks.org]
address 127.0.0.1
use_node_name yes

The /var/www/vhosts/rslinks.org/httpdocs/monitoring dir doesn't contain any files. while I search the folder munin, I found this /var/www/munin dir that contain localdomain dir with all the image on it,index, style and etc.
Reply With Quote
Sponsored Links
  #2  
Old 6th October 2008, 13:06
zcworld zcworld is offline
Senior Member
 
Join Date: Jul 2006
Location: South Australia
Posts: 329
Thanks: 2
Thanked 37 Times in 37 Posts
Send a message via MSN to zcworld Send a message via Skype™ to zcworld
Default

does apache / www user / group own / have access to the files/folders

maybe thats the problem ...
__________________
Shane Ebert :: Facebok
Reply With Quote
The Following User Says Thank You to zcworld For This Useful Post:
rslinks (7th October 2008)
  #3  
Old 6th October 2008, 13:25
rslinks rslinks is offline
Junior Member
 
Join Date: Oct 2008
Posts: 10
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by zcworld View Post
does apache / www user / group own / have access to the files/folders

maybe thats the problem ...
Hi zcworld,
Thank you for the fast reply.

I used this code:
chown munin:munin /var/www/www.example.com/web/monitoring
To give to munin group and user access to monitoring folder. But I don't know if apache give them access, since I don't how to do it (I'm beginner).

Can you tell me how to do it if you can?

Thanks
Reply With Quote
  #4  
Old 7th October 2008, 00:07
zcworld zcworld is offline
Senior Member
 
Join Date: Jul 2006
Location: South Australia
Posts: 329
Thanks: 2
Thanked 37 Times in 37 Posts
Send a message via MSN to zcworld Send a message via Skype™ to zcworld
Default

try
chown apache:munin /var/www/path/to/munin
see if thats works

There you set apache (user) to have access and the group (munin) to have access
so any users in the munin group can still have access to what level the group is set at


im still a tab new to the chmod command line myself ... hope it help in a way ... when i get home i will have a look at it a bit more
__________________
Shane Ebert :: Facebok
Reply With Quote
  #5  
Old 7th October 2008, 00:33
rslinks rslinks is offline
Junior Member
 
Join Date: Oct 2008
Posts: 10
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by zcworld View Post
try
chown apache:munin /var/www/path/to/munin
see if thats works

There you set apache (user) to have access and the group (munin) to have access
so any users in the munin group can still have access to what level the group is set at


im still a tab new to the chmod command line myself ... hope it help in a way ... when i get home i will have a look at it a bit more
Hi again,

First, thank you for the support

I typed this command: chown apache:munin /var/www/vhosts/rslinks.org/httpdocs/monitoring

but I get this error: chown: `apache:munin': invalid user
Reply With Quote
  #6  
Old 7th October 2008, 05:24
zcworld zcworld is offline
Senior Member
 
Join Date: Jul 2006
Location: South Australia
Posts: 329
Thanks: 2
Thanked 37 Times in 37 Posts
Send a message via MSN to zcworld Send a message via Skype™ to zcworld
Default

try
chown www:munin

if you get an error
look at the Apache httpd.conf file
and see what user its runs under
it maybe like www-data or www-user

and what howto did you use for the setup / OS
__________________
Shane Ebert :: Facebok
Reply With Quote
  #7  
Old 7th October 2008, 09:40
rslinks rslinks is offline
Junior Member
 
Join Date: Oct 2008
Posts: 10
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by zcworld View Post
try
chown www:munin

if you get an error
look at the Apache httpd.conf file
and see what user its runs under
it maybe like www-data or www-user

and what howto did you use for the setup / OS
I get this error: chown: `www:munin': invalid user

I looked on the httpd.conf file but his empty, I understend that the
apache2.conf on debian replace him. I looked on
apache2.conf and I found this:


<IfModule mpm_worker_module>
StartServers 2
MaxClients 300
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>

User www-data
Group www-data


this is what you meant?

My OS is Debian and I used this guide:
http://www.howtoforge.com/server_monitoring_monit_munin
Reply With Quote
  #8  
Old 7th October 2008, 17:31
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,727 Times in 2,565 Posts
Default

On Debian the username is www-data, not www.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #9  
Old 7th October 2008, 18:42
rslinks rslinks is offline
Junior Member
 
Join Date: Oct 2008
Posts: 10
Thanks: 2
Thanked 0 Times in 0 Posts
Default

I used www-data, but it's still doesn't give munin rights to create files on
/var/www/vhosts/rslinks.org/httpdocs/monitoring
Reply With Quote
  #10  
Old 7th October 2008, 19:05
rslinks rslinks is offline
Junior Member
 
Join Date: Oct 2008
Posts: 10
Thanks: 2
Thanked 0 Times in 0 Posts
 
Default

If I change the htmldir back to /var/www/munin, everything OK - it's creating the all files. but I can't access /var/log/munin through the browser.
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
munin permissions sjau HOWTO-Related Questions 10 17th April 2009 17:27
MUNIN help request :) patricos Installation/Configuration 3 9th September 2008 17:40
I moved munin, now i'm screwed jdkullmann HOWTO-Related Questions 9 24th May 2008 12:41
Munin graphs Sohail Khawaja HOWTO-Related Questions 7 8th January 2008 17:43
SpamAssassin (lugin) with Munin edge Server Operation 4 18th August 2006 23:37


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


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