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.
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
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
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
I used www-data, but it's still doesn't give munin rights to create files on /var/www/vhosts/rslinks.org/httpdocs/monitoring
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.
What are the outputs of Code: ls -la /var/www/vhosts/rslinks.org/httpdocs/monitoring and Code: ls -la /var/www/munin ?
Code: 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 .. Code: 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