View Full Version : munin help
rslinks
6th October 2008, 12:03
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.
zcworld
6th October 2008, 14:06
does apache / www user / group own / have access to the files/folders
maybe thats the problem ...
rslinks
6th October 2008, 14:25
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
zcworld
7th October 2008, 01:07
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
rslinks
7th October 2008, 01:33
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
zcworld
7th October 2008, 06:24
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
rslinks
7th October 2008, 10:40
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
falko
7th October 2008, 18:31
On Debian the username is www-data, not www.
rslinks
7th October 2008, 19:42
I used www-data, but it's still doesn't give munin rights to create files on
/var/www/vhosts/rslinks.org/httpdocs/monitoring :(
rslinks
7th October 2008, 20:05
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.
falko
8th October 2008, 13:11
What are the outputs of ls -la /var/www/vhosts/rslinks.org/httpdocs/monitoring and ls -la /var/www/munin?
rslinks
8th October 2008, 13:57
ls -la /var/www/vhosts/rslinks.org/httpdocs/monitoring
total 8
drwxr-xr-x 2 munin munin 4096 2008-10-07 18:39 .
drwxr-x--- 20 shahard333 psaserv 4096 2008-10-07 21:52 ..
ls -la /var/www/munin
total 88
drwxr-xr-x 4 munin munin 4096 2008-10-07 19:00 .
drwxr-xr-x 6 root root 4096 2008-10-06 00:34 ..
-rw-r--r-- 1 munin munin 2555 2008-10-06 00:35 definitions.html
-rw-r--r-- 1 munin munin 1430 2008-10-08 12:55 index.html
drwxr-xr-x 2 munin munin 36864 2008-10-06 00:35 localdomain
-rw-r--r-- 1 munin munin 473 2008-10-06 00:35 logo.png
drwxr-xr-x 2 munin munin 28672 2008-10-07 19:00 org
-rw-r--r-- 1 munin munin 3538 2008-10-06 00:35 style.css
falko
9th October 2008, 19:16
Please run
chmod 755 /var/www/vhosts/rslinks.org/httpdocs
rslinks
9th October 2008, 19:37
Please run
chmod 755 /var/www/vhosts/rslinks.org/httpdocs
Thanks it's helped!!:)
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.