Can not get Munin to work together with ISPConfig 3

Discussion in 'General' started by Nielsterp, Mar 12, 2012.

  1. Nielsterp

    Nielsterp New Member

    Hi there, I'm running ISPConfig 3.0.4.3 on Debian Squeeze.

    Lately I have been trying to install Munin on my machine, following the guide at http://www.howtoforge.com/server-monitoring-with-munin-and-monit-on-debian-lenny

    This is my munin.conf:

    Code:
    dbdir  /var/lib/munin
     htmldir /var/www/clients/client1/web1/web/monitoring
     logdir /var/log/munin
     rundir  /var/run/munin
     tmpldir /etc/munin/templates
     includedir /etc/munin/munin-conf.d
    
     [nielsterp.se]
        address 127.0.0.1
        use_node_name yes
    And my munin-graph.log:

    Code:
    2012/03/12 19:25:17 Opened log file
    2012/03/12 19:25:17 Starting munin-graph
    2012/03/12 19:25:18 [RRD ERROR] Unable to graph /var/www/clients/client1/web1/web/monitoring/se/nielsterp.se/apache_accesses-month.png : Could not save png to '/var/www/clients/client1/web1/web/monitoring/se/nielsterp.se/apache_accesses-month.png'
    2012/03/12 19:25:18 [RRD ERROR] Unable to graph /var/www/clients/client1/web1/web/monitoring/se/nielsterp.se/df-month.png : Could not save png to '/var/www/clients/client1/web1/web/monitoring/se/nielsterp.se/df-month.png'
    2012/03/12 19:25:18 [RRD ERROR] Unable to graph /var/www/clients/client1/web1/web/monitoring/se/nielsterp.se/if_eth0-month.png : Could not save png to '/var/www/clients/client1/web1/web/monitoring/se/nielsterp.se/if_eth0-month.png'
    Clearly, Munin tryes to write to a subdirectory to the 'monitoring' directory, and fails. I have done a chown munin:munin on the directory.

    I know that this question is not directly related to ISPConfig, but I hope some of you can help me anyway.

    EDIT: I have just tried to create a subdirectory /se/nielsterp.se/, but I still get the same error. And I don't understand why my domainname is mixed up with the file name ?
     
    Last edited: Mar 12, 2012
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Munin works fine on ISPConfig servers. Your probelm are just the directory permissions, if munin has no access to the website directories, it can not sve any files there.

    Make sure thet the following directories are accessible for the munin user:

    /var/www/clients/client1/web1/web
    /var/www/clients/client1/web1/web/monitoring
     
  3. Nielsterp

    Nielsterp New Member

    Hi Till,

    I have now set both directories to allow all to write:

    Code:
    [email protected]:/var/www/clients/client1/web1# ls -ali
    total 32
    3160226 drwxr-x--x  7 web1 client1 4096 Mar  6 07:57 .
    3160202 drwxr-xr-x  3 root root    4096 Mar  6 07:29 ..
    3160234 drwxr-x--x  2 web1 client1 4096 Mar  6 07:29 cgi-bin
    3160256 -rwxr-xr-x  1 root root      40 Mar  6 07:30 .htpasswd_stats
    3160239 lrwxrwxrwx  1 root root      37 Mar  6 07:29 log -> /var/log/ispconfig/httpd/nielsterp.se
    3409764 drwxr-x--x  2 web1 client1 4096 Mar  6 07:57 _mmServerScripts
    3160228 drwxr-x--x  2 web1 client1 4096 Mar  6 07:41 ssl
    3160236 drwxrwxrwx  2 web1 client1 4096 Mar 12 00:30 tmp
    [B]3160232 drwxrwxrwx 11 web1 client1 4096 Mar 12 19:45 web[/B]
    Code:
    [email protected]:/var/www/clients/client1/web1/web# ls -ali
    total 100
    3160232 drwxrwxrwx 11 web1  client1 4096 Mar 12 19:45 .
    3160226 drwxr-x--x  7 web1  client1 4096 Mar  6 07:57 ..
    3160271 drwxr-xr-x  3 web1  client1 4096 Mar  6 08:14 Administration
    3160493 -rw-r--r--  1 web1  client1 4303 Mar  6 07:54 ajax.js
    3160494 drwxr-xr-x  2 web1  client1 4096 Mar  6 07:54 Alkohol
    3160502 -rw-r--r--  1 web1  client1  327 Mar  6 07:54 alkoholoverskrift.php
    3160501 -rw-r--r--  1 web1  client1  320 Mar  6 07:54 alkohol.php
    3160504 drwxr-xr-x  2 web1  client1 4096 Mar  6 07:54 Astrofysik
    3160509 -rw-r--r--  1 web1  client1  328 Mar  6 07:54 astrofysikoverskrift.php
    3160507 -rw-r--r--  1 web1  client1  330 Mar  6 07:54 astrofysik.php
    3160510 drwxr-xr-x  2 web1  client1 4096 Mar  6 07:54 Billeder
    3283344 drwxr-xr-x 16 web1  client1 4096 Mar  6 09:38 CMS_new
    3160244 -rwxr-xr--  1 web1  client1 7358 Mar  6 07:29 favicon.ico
    3163292 -rw-r--r--  1 web1  client1  324 Mar  6 07:57 forsideoverskrift.php
    3163291 -rw-r--r--  1 web1  client1  330 Mar  6 07:57 forside.php
    3160246 -rwxr-xr--  1 web1  client1   26 Mar  6 07:29 .htaccess
    3163293 -rw-r--r--  1 web1  client1 3304 Mar  6 09:34 index.php
    3409761 drwxr-xr-x  2 web1  client1 4096 Mar  6 07:57 _mmServerScripts
    [B]3159001 drwxrwxrwx  3 munin munin   4096 Mar 13 11:30 monitoring[/B]
    3285011 drwxr-xr-x  2 web1  client1 4096 Mar  6 07:57 SpryAssets
    3160253 drwxr-xr-x  2 web1  client1 4096 Mar  6 08:16 stats
    3163295 -rw-r--r--  1 web1  client1 4599 Mar  6 07:57 thrColLiqHdr.css
    But I still have the same problem:

    Code:
    2012/03/13 11:25:17 Opened log file
    2012/03/13 11:25:17 Starting munin-graph
    2012/03/13 11:25:18 [RRD ERROR] Unable to graph /var/www/clients/client1/web1/web/monitoring/se/nielsterp.se/if_eth0-month.png : Could not save png to '/var/www/clients/client1/web1/web/monitoring/se/nielsterp.se/if_eth0-month.png'
    2012/03/13 11:25:18 [RRD ERROR] Unable to graph /var/www/clients/client1/web1/web/monitoring/se/nielsterp.se/df-month.png : Could not save png to '/var/www/clients/client1/web1/web/monitoring/se/nielsterp.se/df-month.png'
    2012/03/13 11:25:18 [RRD ERROR] Unable to graph /var/www/clients/client1/web1/web/monitoring/se/nielsterp.se/apache_accesses-month.png : Could not save png to '/var/www/clients/client1/web1/web/monitoring/se/nielsterp.se/apache_accesses-month.png'
    I have noticed, that what ever I set my sitename to, this shows up as (a somehow garbeled) part of the path munin is trying to write to. Is this the default behaviour ?

    I just realized that I had forgotten to restart munin after a gave write permission to /var/www/clients/client1/web1/web

    It works now, thank you very much for your help !
     
    Last edited: Mar 13, 2012

Share This Page