munin help

Discussion in 'Installation/Configuration' started by rslinks, Oct 6, 2008.

  1. rslinks

    rslinks New Member

    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.
     
  2. zcworld

    zcworld New Member

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

    maybe thats the problem ...
     
  3. rslinks

    rslinks New Member

    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
     
  4. zcworld

    zcworld New Member

    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
     
  5. rslinks

    rslinks New Member

    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
     
  6. zcworld

    zcworld New Member

    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
     
  7. rslinks

    rslinks New Member

    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
     
  8. falko

    falko Super Moderator Howtoforge Staff

    On Debian the username is www-data, not www.
     
  9. rslinks

    rslinks New Member

    I used www-data, but it's still doesn't give munin rights to create files on
    /var/www/vhosts/rslinks.org/httpdocs/monitoring :(
     
  10. rslinks

    rslinks New Member

    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.
     
  11. falko

    falko Super Moderator Howtoforge Staff

    What are the outputs of
    Code:
    ls -la /var/www/vhosts/rslinks.org/httpdocs/monitoring
    and
    Code:
    ls -la /var/www/munin
    ?
     
  12. rslinks

    rslinks New Member

    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
     
  13. falko

    falko Super Moderator Howtoforge Staff

    Please run
    Code:
    chmod 755 /var/www/vhosts/rslinks.org/httpdocs
     
  14. rslinks

    rslinks New Member

    Thanks it's helped!!:)
     

Share This Page