Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 12th March 2012, 19:49
Nielsterp Nielsterp is offline
Junior Member
 
Join Date: Nov 2008
Posts: 19
Thanks: 3
Thanked 0 Times in 0 Posts
Question Can not get Munin to work together with ISPConfig 3

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-mon...n-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 by Nielsterp; 12th March 2012 at 23:05.
Reply With Quote
Sponsored Links
  #2  
Old 13th March 2012, 09:40
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,421
Thanks: 812
Thanked 5,205 Times in 4,081 Posts
Default

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
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
Nielsterp (13th March 2012)
  #3  
Old 13th March 2012, 11:38
Nielsterp Nielsterp is offline
Junior Member
 
Join Date: Nov 2008
Posts: 19
Thanks: 3
Thanked 0 Times in 0 Posts
 
Default

Hi Till,

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

Code:
root@privat:/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
3160232 drwxrwxrwx 11 web1 client1 4096 Mar 12 19:45 web
Code:
root@privat:/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
3159001 drwxrwxrwx  3 munin munin   4096 Mar 13 11:30 monitoring
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 by Nielsterp; 13th March 2012 at 12:03. Reason: Solved
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
Control Panel - E-mail Tab is empty domi-nik General 15 14th April 2011 18:17
SquirrelMail login not working glenneh Installation/Configuration 13 9th April 2011 20:01
ISPConfig kill apache and ports, not work ISPconfig JaBa Installation/Configuration 8 19th March 2009 17:51
ISPConfig installation into multiple OpenVZ containers letezo Installation/Configuration 11 3rd March 2009 22:47
ISPConfig install error: The PHP binary coming with ISPConfig does not work... mlanglois Installation/Configuration 9 13th July 2006 14:56


All times are GMT +2. The time now is 02:44.


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