Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 29th January 2010, 12:42
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 212
Thanked 648 Times in 294 Posts
Send a message via Skype™ to Hans
Arrow Munin on an ISPConfig3 server

I try to get munin up and running on a new Debian/Xen ISPConfig3 server.

Munin can write data into the default htmldir, which is /var/www/munin. So that's ok.

However after changing the htmldir within /etc/munin/munin.conf, munin can't write it's data into the directory i've defined. Here is the output of my current /etc/munin/munin.conf:

cat /etc/munin/conf

dbdir /var/lib/munin
htmldir /var/www/www.example.com/web/munin
logdir /var/log/munin
rundir /var/run/munin

After defining the new htmldir, i did:

mkdir -p /var/www/example.com/web/munin
chown munin:munin /var/www/example.com/web/munin
/etc/init.d/munin-node restart

I also did:
chmod 755 /var/www/example.com/web/munin
But no luck.

Is there something i miss here?
Do i need to create a specific setting in ISPConfig3 for the website?


***EDIT *** Here are some outputs of the munin log files:

cat munin.graph.log

Unable to graph /var/lib/munin/localdomain/localhost.localdomain-vmstat-sleep-g.rrd: Could not save png to '/var/www/www.example.com/web/munin/localdomain/localhost.localdomain-vmstat-week.png'

cat munin-html.log

Jan 29 16:25:05 - processing domain: localdomain
Jan 29 16:30:06 - Starting munin-html, checking lock
Jan 29 16:30:06 - could not copy style.css into htmldir
Jan 29 16:30:06 - could not copy logo.png into htmldir
Jan 29 16:30:06 - could not copy definitions.html into htmldir
Jan 29 16:30:06 - processing domain: localdomain
__________________
Hans

BB-Hosting | Quality Web Hosting since 2005

Last edited by Hans; 29th January 2010 at 17:38.
Reply With Quote
Sponsored Links
  #2  
Old 30th January 2010, 16:14
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,721 Times in 2,562 Posts
Default

What's the output of
Code:
ls -la /var/www/www.example.com/web/munin/
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 30th January 2010, 17:15
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 212
Thanked 648 Times in 294 Posts
Send a message via Skype™ to Hans
Default

Hi Falko,
thanks for your reply.
The output is:

drwxr-xr-x 2 munin munin 4096 2010-01-30 13:33 .
drwx--x--- 6 web2 client1 4096 2010-01-30 14:00 ..
__________________
Hans

BB-Hosting | Quality Web Hosting since 2005
Reply With Quote
  #4  
Old 30th January 2010, 17:49
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,033
Thanks: 261
Thanked 147 Times in 128 Posts
Default

Hans,

Try using the true paths ( /var/client/clients...... )
I have munning up and running, and used the above paths
__________________
Never execute code written on a Friday or a Monday.
Reply With Quote
  #5  
Old 30th January 2010, 18:02
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 212
Thanked 648 Times in 294 Posts
Send a message via Skype™ to Hans
Default

Thanks for your reply Edge, but i tried that also already.
Munin can only put its data in /var/www/munin which is the default directory on Debian...
__________________
Hans

BB-Hosting | Quality Web Hosting since 2005

Last edited by Hans; 30th January 2010 at 19:01.
Reply With Quote
  #6  
Old 31st January 2010, 00:39
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,033
Thanks: 261
Thanked 147 Times in 128 Posts
Default

Quote:
Originally Posted by Hans View Post
Thanks for your reply Edge, but i tried that also already.
Munin can only put its data in /var/www/munin which is the default directory on Debian...
This is how my working munin.conf looks like:

Quote:
dbdir /var/lib/munin
htmldir /var/clients/client1/web1/web/monitoring
logdir /var/log/munin
rundir /var/run/munin
As you can see. For me it's working also working in /var/clients/client1/web1/web/monitoring
__________________
Never execute code written on a Friday or a Monday.

Last edited by edge; 31st January 2010 at 00:43.
Reply With Quote
  #7  
Old 31st January 2010, 09:15
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 212
Thanked 648 Times in 294 Posts
Send a message via Skype™ to Hans
Default

Hi Edge, thanks for your help.
I think in principle the true paths are better indeed, so i changed it again.
After changing, my configuration file, i did: /etc/init.d/munin-node restart

Within /etc/munin/munin.conf, now i have:

dbdir /var/lib/munin
htmldir /var/www/clients/client1/web2/web/munin
logdir /var/log/munin
rundir /var/run/munin

Short after that a message appears in /var/mail/root, which says:

Message-Id: <20100131080506.59CB710C426@www.example.com>
Date: Sun, 31 Jan 2010 08:05:06 +0000 (UTC)

cp: accessing `/var/www/clients/client1/web2/web/munin/': Permission denied
cp: accessing `/var/www/clients/client1/web2/web/munin/': Permission denied
cp: accessing `/var/www/clients/client1/web2/web/munin/': Permission denied
Cannot mkdir /var/www/clients/client1/web2/web/munin/example.com: Permission denied at /usr/share/munin/munin-html line 184.

The output of:
ls -la /var/www/clients/client1/web2/web/munin is:

drwxr-xr-x 2 munin munin 4096 2010-01-30 13:33 .
drwx--x--- 6 web2 client1 4096 2010-01-30 14:00 ..

I don't understand why munin can't write its data into my htmldir.
As far as i see it has to do something with the permissions, but what can i do?
Maybe it has nothing to do with it, but did you also installed Jailkit or not?
__________________
Hans

BB-Hosting | Quality Web Hosting since 2005

Last edited by Hans; 31st January 2010 at 09:20.
Reply With Quote
  #8  
Old 31st January 2010, 09:28
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,033
Thanks: 261
Thanked 147 Times in 128 Posts
Default

Yes I do have Jailkit on my system.

My ls -la /var/clients/client1/web1/web/monitoring
Code:
drwxr-xr-x  3 munin munin    4096 2009-03-04 21:40 .
drwxrwxrwx 28 web1  client1  4096 2010-01-30 17:46 ..
-rw-r--r--  1 munin munin    2555 2009-03-04 21:40 definitions.html
-rw-r--r--  1 munin munin    1677 2010-01-31 09:25 index.html
drwxr-xr-x  2 munin munin   12288 2009-10-27 23:25 xxxx.info
-rw-r--r--  1 munin munin     473 2009-03-04 21:40 logo.png
-rw-r--r--  1 munin munin    3472 2009-03-04 21:40 style.css
__________________
Never execute code written on a Friday or a Monday.
Reply With Quote
  #9  
Old 31st January 2010, 09:41
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 212
Thanked 648 Times in 294 Posts
Send a message via Skype™ to Hans
Default

Ok, then both we have Jailkit installed.

For munin:munin we have the same, which is: drwxr-xr-x
For web1:client1 you have drwxrwxrwx (chmod 777), while i have: drwx--x--- which was generated automaticly by ISPConfig 3.

As far as i see, this is the only difference, isn't it ?
I hope there is another solution, because i try to avoid chmod 777.

I also would like to know, which options did you enable for your website in ISPConfig 3?
__________________
Hans

BB-Hosting | Quality Web Hosting since 2005

Last edited by Hans; 31st January 2010 at 09:58.
Reply With Quote
  #10  
Old 31st January 2010, 10:29
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,033
Thanks: 261
Thanked 147 Times in 128 Posts
 
Default

Quote:
For web1:client1 you have drwxrwxrwx (chmod 777)
No.. It's 755 (created and owned by Munin)

Quote:
I also would like to know, which options did you enable for your website in ISPConfig 3?
All I have set for that site is PHP to Fast-CGI, and site is Active.
__________________
Never execute code written on a Friday or a Monday.

Last edited by edge; 31st January 2010 at 10:37.
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
ISPConfig 3 - CentOS 5.4 - SSL Problems!?! owainbaber Installation/Configuration 4 26th July 2011 17:12
I don't recieve mail. privir Installation/Configuration 2 3rd June 2009 22:08
munin permissions sjau HOWTO-Related Questions 10 17th April 2009 17:27
Can't start apache Musty Server Operation 12 9th March 2008 13:58
Webmail Relay Error palkat General 17 23rd April 2006 18:12


All times are GMT +2. The time now is 11:53.


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