HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   HOWTO-Related Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=2)
-   -   munin permissions (http://www.howtoforge.com/forums/showthread.php?t=3945)

sjau 27th April 2006 10:31

munin permissions
 
Hiya

I have the problem that the munin permissions aren't correct

Quote:

Apr 27 10:25:06 - Unable to graph /var/lib/munin/greatnet.de/t390.greatnet.de-forks-forks-d.rrd: Opening '/var/www/confixx/html/monitoring/greatnet.de/t390.greatnet.de-forks-month.png' for write: Permission denied
Apr 27 10:25:06 - Unable to graph /var/lib/munin/greatnet.de/t390.greatnet.de-forks-forks-d.rrd: Opening '/var/www/confixx/html/monitoring/greatnet.de/t390.greatnet.de-forks-week.png' for write: Permission denied
Apr 27 10:25:06 - Unable to graph /var/lib/munin/greatnet.de/t390.greatnet.de-forks-forks-d.rrd: Opening '/var/www/confixx/html/monitoring/greatnet.de/t390.greatnet.de-forks-day.png' for write: Permission denied
Apr 27 10:25:06 - Unable to graph /var/lib/munin/greatnet.de/t390.greatnet.de-forks-forks-d.rrd: Opening '/var/www/confixx/html/monitoring/greatnet.de/t390.greatnet.de-forks-year.png' for write: Permission denied
Apr 27 10:25:06 - Graphed service : forks (0.03 sec * 4)
Apr 27 10:25:06 - Unable to graph /var/lib/munin/greatnet.de/t390.greatnet.de-memory-inactive-g.rrd: Opening '/var/www/confixx/html/monitoring/greatnet.de/t390.greatnet.de-memory-month.png' for write: Permission denied
Apr 27 10:25:06 - Unable to graph /var/lib/munin/greatnet.de/t390.greatnet.de-memory-inactive-g.rrd: Opening '/var/www/confixx/html/monitoring/greatnet.de/t390.greatnet.de-memory-week.png' for write: Permission denied
Apr 27 10:25:06 - Unable to graph /var/lib/munin/greatnet.de/t390.greatnet.de-memory-inactive-g.rrd: Opening '/var/www/confixx/html/monitoring/greatnet.de/t390.greatnet.de-memory-day.png' for write: Permission denied
Apr 27 10:25:06 - Unable to graph /var/lib/munin/greatnet.de/t390.greatnet.de-memory-inactive-g.rrd: Opening '/var/www/confixx/html/monitoring/greatnet.de/t390.greatnet.de-memory-year.png' for write: Permission denied
Apr 27 10:25:06 - Graphed service : memory (0.07 sec * 4)
Apr 27 10:25:06 - Unable to graph /var/lib/munin/greatnet.de/t390.greatnet.de-vmstat-sleep-g.rrd: Opening '/var/www/confixx/html/monitoring/greatnet.de/t390.greatnet.de-vmstat-month.png' for write: Permission denied
Apr 27 10:25:06 - Unable to graph /var/lib/munin/greatnet.de/t390.greatnet.de-vmstat-sleep-g.rrd: Opening '/var/www/confixx/html/monitoring/greatnet.de/t390.greatnet.de-vmstat-week.png' for write: Permission denied
Apr 27 10:25:06 - Unable to graph /var/lib/munin/greatnet.de/t390.greatnet.de-vmstat-sleep-g.rrd: Opening '/var/www/confixx/html/monitoring/greatnet.de/t390.greatnet.de-vmstat-day.png' for write: Permission denied
Apr 27 10:25:06 - Unable to graph /var/lib/munin/greatnet.de/t390.greatnet.de-vmstat-sleep-g.rrd: Opening '/var/www/confixx/html/monitoring/greatnet.de/t390.greatnet.de-vmstat-year.png' for write: Permission denied
Apr 27 10:25:06 - Graphed service : vmstat (0.03 sec * 4)
Apr 27 10:25:06 - Processed node: t390.greatnet.de (0.93 sec)
Apr 27 10:25:06 - Processed domain: greatnet.de (0.93 sec)
Apr 27 10:25:06 - Munin-graph finished (0.95 sec)
Looking at the monitoring folder:
Quote:

drwxrwxrwx 2 munin munin 4096 2006-04-27 10:20 monitoring
t390:/var/www/confixx/html#
I even set permissions to 0777 since I get the permission denied error.

Any solution?

falko 27th April 2006 12:23

Can you post the output of
Code:

ls -la /var/www/confixx/html/monitoring
?
Is it a Debian Sarge system, and did you install the munin packages from the tutorial?
What's the output of
Code:

ps aux|grep munin
?

sjau 27th April 2006 12:29

It is sarge and I installed it by copy'n'paste from your tutorial:

Quote:

drwxrwxrwx 2 munin munin 4096 2006-04-27 10:20 .
drwxrwxrwx 25 confixx confixx 4096 2006-04-27 09:45 ..
The munin-html.log does contain this:

Quote:

Apr 27 10:35:06 - Starting munin-html, checking lock
Apr 27 10:35:06 - could not copy style.css into htmldir
Apr 27 10:35:06 - could not copy logo.png into htmldir
Apr 27 10:35:06 - could not copy definitions.html into htmldir
Apr 27 10:35:06 - processing domain: greatnet.de
Apr 27 10:35:06 - processing node: t390.greatnet.de
Apr 27 10:35:06 - processing service: cpu
Apr 27 10:40:07 - Starting munin-html, checking lock
Apr 27 10:40:07 - could not copy style.css into htmldir
Apr 27 10:40:07 - could not copy logo.png into htmldir
Apr 27 10:40:07 - could not copy definitions.html into htmldir
Apr 27 10:40:07 - processing domain: greatnet.de
Apr 27 10:40:07 - processing node: t390.greatnet.de
Apr 27 10:40:07 - processing service: cpu
Apr 27 10:45:07 - Starting munin-html, checking lock
Apr 27 10:45:07 - could not copy style.css into htmldir
Apr 27 10:45:07 - could not copy logo.png into htmldir
Apr 27 10:45:07 - could not copy definitions.html into htmldir
Apr 27 10:45:07 - processing domain: greatnet.de
Apr 27 10:45:07 - processing node: t390.greatnet.de
Apr 27 10:45:07 - processing service: cpu
Apr 27 10:50:07 - Starting munin-html, checking lock
Apr 27 10:50:07 - could not copy style.css into htmldir
Apr 27 10:50:07 - could not copy logo.png into htmldir
Apr 27 10:50:07 - could not copy definitions.html into htmldir

And here the grep:
Quote:

t390:/var/www/confixx/html/monitoring# ps aux|grep munin
root 18964 0.0 0.5 8212 5588 ? Ss 09:46 0:00 /usr/sbin/munin-node
root 9924 0.0 0.0 1928 620 pts/0 S+ 12:26 0:00 grep munin
t390:/var/www/confixx/html/monitoring#

falko 27th April 2006 16:55

Can you post the whole output of
Code:

ls -la /var/www/confixx/html/monitoring
?

sjau 27th April 2006 18:27

Already did so above;

Quote:

t390:~# ls -la /var/www/confixx/html/monitoring
total 8
drwxrwxrwx 2 munin munin 4096 2006-04-27 12:26 .
drwxrwxrwx 25 confixx confixx 4096 2006-04-27 09:45 ..
t390:~#

falko 28th April 2006 14:24

What's the output of

Code:

ls -la /var
ls -la /var/www
ls -la /var/www/confixx
ls -la /var/www/confixx/html

?

sjau 28th April 2006 14:37

Here's the output:

Quote:

t390:~# ls -al /var
total 56
drwxr-xr-x 14 root root 4096 2006-04-21 21:48 .
drwxr-xr-x 21 root root 4096 2006-04-20 13:35 ..
drwxr-xr-x 2 root root 4096 2006-04-28 06:25 backups
drwxr-xr-x 11 root root 4096 2006-01-15 10:01 cache
drwxr-xr-x 28 root root 4096 2006-04-27 09:43 lib
drwxrwsr-x 2 root staff 4096 2004-12-15 23:55 local
drwxrwxrwt 3 root root 4096 2006-04-10 20:21 lock
drwxr-xr-x 10 root root 4096 2006-04-28 06:25 log
drwxrwsr-x 2 root mail 4096 2006-04-25 14:21 mail
drwxr-xr-x 2 root root 4096 2005-06-26 20:16 opt
drwxr-xr-x 14 root root 4096 2006-04-28 06:25 run
drwxr-xr-x 7 root root 4096 2006-01-06 18:41 spool
drwxrwxrwt 3 root root 4096 2006-04-25 08:32 tmp
drwxr-xr-x 23 root root 4096 2006-04-27 09:43 www
t390:~#
Quote:

t390:~# ls -al /var/www
total 92
drwxr-xr-x 23 root root 4096 2006-04-27 09:43 .
drwxr-xr-x 14 root root 4096 2006-04-21 21:48 ..
drwxr-xr-x 2 root root 4096 2005-11-30 22:39 apache2-default
drwx------ 7 root root 4096 2005-12-01 04:19 chroot
drwxr-x--- 6 confixx www-data 4096 2005-12-22 22:24 confixx
dr--r--r-- 2 root root 4096 2005-12-01 04:19 empty
drwxr-xr-x 2 munin munin 4096 2005-04-03 02:54 munin
drwxr-xr-x 2 root root 4096 2006-01-15 10:02 sqwebmail
drwxrwxrwx 16 web0 web0 4096 2004-11-28 01:21 web0
drwxr-xr-x 10 root root 4096 2006-03-25 19:00 web1
drwxr-xr-x 16 root root 4096 2006-04-13 18:40 web10
drwxr-xr-x 10 root root 4096 2006-04-20 15:20 web11
drwxr-xr-x 10 root root 4096 2006-04-21 13:10 web12
drwxr-xr-x 16 root root 4096 2006-04-23 22:46 web13
drwxrwxrwx 10 web2 web2 4096 2005-05-11 13:57 web2
drwxrwxrwx 8 web3 web3 4096 2006-03-23 10:39 web3
drwxrwxrwx 10 web4 web4 4096 2006-04-21 18:56 web4
drwxrwxrwx 8 web5 web5 4096 2005-12-23 14:14 web5
drwxrwxrwx 10 web6 web6 4096 2005-07-18 12:50 web6
drwxrwxrwx 10 web7 web7 4096 2005-09-18 23:35 web7
drwxr-xr-x 16 root root 4096 2006-04-15 00:00 web8
drwxr-xr-x 10 web9 web9 4096 2005-12-23 18:16 web9
drwxrwxrwx 2 root root 4096 2005-11-30 22:38 webalizer
Quote:

t390:~# ls -al /var/www/confixx
total 28
drwxr-x--- 6 confixx www-data 4096 2005-12-22 22:24 .
drwxr-xr-x 23 root root 4096 2006-04-27 09:43 ..
drwxrwxrwx 2 confixx confixx 4096 2005-12-22 22:24 bin
drwxrwxrwx 25 confixx confixx 4096 2006-04-27 09:45 html
drwxrwxrwx 4 confixx www-data 4096 2005-12-01 04:19 sbin
-rwxrwxrwx 1 confixx www-data 1246 2005-12-22 22:34 settings.inc.php
drwxrwxrwx 2 confixx confixx 4096 2006-04-25 14:18 tmp
Quote:

t390:~# ls -al /var/www/confixx/html
total 336
drwxrwxrwx 25 confixx confixx 4096 2006-04-27 09:45 .
drwxr-x--- 6 confixx www-data 4096 2005-12-22 22:24 ..
-rw-r--r-- 1 confixx confixx 43 2005-12-22 22:34 1px.gif
-rw-r--r-- 1 confixx confixx 43 2005-12-22 22:34 1x1.gif
drwxr-xr-x 4 confixx confixx 8192 2005-12-22 22:34 admin
drwxr-xr-x 2 confixx confixx 4096 2005-12-22 22:34 anbieter
-rw-r--r-- 1 confixx confixx 119 2005-12-22 22:34 back.gif
-rw-r--r-- 1 confixx confixx 4234 2005-12-22 22:34 bckg.gif
-rw-r--r-- 1 confixx confixx 1615 2005-12-22 22:34 bottom.html
drwxr-xr-x 4 confixx confixx 4096 2006-01-03 21:25 cgi-bin
drwxr-xr-x 4 wine users 4096 2004-03-17 19:34 display
-rw-r--r-- 1 confixx confixx 5668 2005-12-22 22:34 dnr.php
-rw-r--r-- 1 confixx confixx 64 2005-12-22 22:34 emailtransf.gif
-rw-r--r-- 1 confixx confixx 290 2005-12-22 22:34 events.inc.php
-rw-r--r-- 1 confixx confixx 3262 2005-12-22 22:34 favicon.ico
-rw-r--r-- 1 confixx confixx 3413 2005-12-22 22:34 fehler.inc.php
-rw-r--r-- 1 confixx confixx 128 2005-12-22 22:34 file.gif
-rw-r--r-- 1 confixx confixx 132 2005-12-22 22:34 folder.gif
drwxr-xr-x 3 confixx confixx 4096 2005-12-22 22:34 ftplogin
-rw-r--r-- 1 confixx confixx 64 2005-12-22 22:34 ftptransf.gif
-rw-r--r-- 1 confixx confixx 25273 2005-12-22 22:34 functions.inc.php
drwxr-xr-x 2 confixx confixx 4096 2005-12-01 04:19 gesperrt
drwxrwxrwx 12 confixx confixx 4096 2005-12-26 13:22 imp
drwxr-xr-x 10 confixx confixx 4096 2005-12-22 22:34 include
-rw-r--r-- 1 confixx confixx 217 2005-12-22 22:34 index.php
drwxr-xr-x 2 confixx confixx 4096 2005-12-01 04:19 install
drwxr-xr-x 2 confixx confixx 4096 2005-12-01 04:19 js
drwxr-xr-x 2 confixx confixx 4096 2005-12-22 22:34 kunde
drwxr-xr-x 10 confixx confixx 4096 2005-12-01 04:19 languages
-rw-r--r-- 1 confixx confixx 302 2005-12-22 22:34 left.html
-rw-r--r-- 1 confixx confixx 2906 2005-12-22 22:34 loginform.php
-rw-r--r-- 1 confixx confixx 4147 2005-12-22 22:34 login.html
-rw-r--r-- 1 confixx confixx 6693 2005-12-22 22:34 login.php
-rw-r--r-- 1 confixx confixx 5028 2005-12-22 22:34 loginscreen.gif
-rw-r--r-- 1 confixx confixx 1448 2005-12-22 22:34 logo.gif
-rw-r--r-- 1 confixx confixx 4925 2005-12-22 22:34 logogross.gif
-rw-r--r-- 1 confixx confixx 511 2005-12-22 22:34 logout.php
-rw-r--r-- 1 confixx confixx 4428 2005-12-22 22:34 lostpwd.php
-rw-r--r-- 1 confixx confixx 31448 2005-12-22 22:34 mc_default_help.htm
drwxrwxrwx 2 munin munin 4096 2006-04-27 12:26 monitoring
drwxrwxrwx 2 confixx confixx 4096 2006-01-05 14:07 mrtg
-rw-r--r-- 1 confixx confixx 975 2005-12-22 22:34 noaccess.inc.php
drwxr-xr-x 7 confixx confixx 4096 2005-12-01 13:40 phpMyAdmin
drwxr-xr-x 3 confixx confixx 4096 2005-12-22 22:34 poplogin
drwxr-xr-x 2 confixx confixx 4096 2005-12-22 22:34 reg
drwxr-xr-x 4 confixx confixx 4096 2005-12-22 22:34 reseller
-rw-r--r-- 1 confixx confixx 235 2005-12-22 22:34 right.html
-rw-r--r-- 1 confixx confixx 16218 2005-12-22 22:34 sessions.inc.php
-r--r--r-- 1 confixx confixx 52 2005-12-22 22:34 settings.inc.php
drwxrwxr-x 18 confixx www-data 4096 2005-12-23 09:31 skins
-rw-r--r-- 1 confixx confixx 798 2005-12-22 22:34 style.css
-rw-r--r-- 1 confixx confixx 2465 2005-12-22 22:34 swsoftpoweredby.png
-rw-r--r-- 1 confixx confixx 3272 2005-12-22 22:34 title.html
-rw-r--r-- 1 confixx confixx 2370 2005-12-22 22:34 toolbar.html
drwxr-xr-x 6 confixx confixx 4096 2005-12-22 22:34 user
-rw-r--r-- 1 confixx confixx 403 2005-12-22 22:34 version.php
drwxr-xr-x 13 confixx confixx 4096 2006-04-21 13:10 webalizer
drwxr-xr-x 2 confixx confixx 4096 2005-12-01 04:19 webftp
drwxr-xr-x 17 confixx confixx 4096 2006-02-15 11:52 webmail
-rw-r--r-- 1 confixx confixx 64 2005-12-22 22:34 webtransf.gif

falko 29th April 2006 14:23

That's the problem:

Code:

t390:~# ls -al /var/www
total 92
drwxr-xr-x 23 root root 4096 2006-04-27 09:43 .
drwxr-xr-x 14 root root 4096 2006-04-21 21:48 ..
drwxr-xr-x 2 root root 4096 2005-11-30 22:39 apache2-default
drwx------ 7 root root 4096 2005-12-01 04:19 chroot
drwxr-x--- 6 confixx www-data 4096 2005-12-22 22:24 confixx
dr--r--r-- 2 root root 4096 2005-12-01 04:19 empty
drwxr-xr-x 2 munin munin 4096 2005-04-03 02:54 munin
drwxr-xr-x 2 root root 4096 2006-01-15 10:02 sqwebmail
drwxrwxrwx 16 web0 web0 4096 2004-11-28 01:21 web0
drwxr-xr-x 10 root root 4096 2006-03-25 19:00 web1
drwxr-xr-x 16 root root 4096 2006-04-13 18:40 web10
drwxr-xr-x 10 root root 4096 2006-04-20 15:20 web11
drwxr-xr-x 10 root root 4096 2006-04-21 13:10 web12
drwxr-xr-x 16 root root 4096 2006-04-23 22:46 web13
drwxrwxrwx 10 web2 web2 4096 2005-05-11 13:57 web2
drwxrwxrwx 8 web3 web3 4096 2006-03-23 10:39 web3
drwxrwxrwx 10 web4 web4 4096 2006-04-21 18:56 web4
drwxrwxrwx 8 web5 web5 4096 2005-12-23 14:14 web5
drwxrwxrwx 10 web6 web6 4096 2005-07-18 12:50 web6
drwxrwxrwx 10 web7 web7 4096 2005-09-18 23:35 web7
drwxr-xr-x 16 root root 4096 2006-04-15 00:00 web8
drwxr-xr-x 10 web9 web9 4096 2005-12-23 18:16 web9
drwxrwxrwx 2 root root 4096 2005-11-30 22:38 webalizer

Please try a
Code:

chmod 755 /var/www/confixx

sjau 29th April 2006 15:17

*thumbs up*

works now perfectly:

http://t390.greatnet.de/monitoring/g...eatnet.de.html

svittal 16th April 2009 16:11

Yet another permission problem with Munin
 
Munin server and node is running on 2 EC2 instances. I can telnet on 4949 on the localhost on the node and also telnet from server(abc) to the node(xyz) on 4949.

My graphs have inconsistent data.
These are my systems info -

Server :
admin@abc:/etc/munin$ whereis munin
munin: /etc/munin /usr/share/munin

admin@abc:/etc/munin$ ls -al /etc/munin/
total 16
drwxr-xr-x 3 root root 4096 2009-04-16 13:24 .
drwxr-xr-x 81 root root 4096 2009-04-16 05:49 ..
-rw-r--r-- 1 root root 2723 2009-04-15 16:41 munin.conf
drwxr-xr-x 2 root root 4096 2009-04-15 18:31 templates

admin@abc:/etc/munin$ ls -al /usr/share/munin/
total 196
drwxr-xr-x 2 munin munin 4096 2009-04-15 14:32 .
drwxr-xr-x 98 root root 4096 2009-04-15 14:32 ..
-rwxr-xr-x 1 munin munin 41113 2008-05-09 16:05 munin-graph
-rwxr-xr-x 1 munin munin 26510 2008-05-09 16:05 munin-html
-rwxr-xr-x 1 munin munin 24534 2008-05-09 16:05 munin-limits
-rwxr-xr-x 1 munin munin 34667 2008-05-09 16:05 munin-update
-rwxr-xr-x 1 munin munin 49224 2008-05-09 16:05 VeraMono.ttf

admin@abc:/etc/munin$ ls -al /var/www/munin
total 32
drwxrwxr-x 4 munin munin 4096 2009-04-15 17:11 .
drwxr-xr-x 5 root root 4096 2009-04-15 14:32 ..
-rw-rw-r-- 1 munin munin 2555 2009-04-15 14:35 definitions.html
-rw-rw-r-- 1 munin munin 1655 2009-04-16 14:05 index.html
drwxrwxr-x 2 munin munin 4096 2009-04-15 14:35 localdomain
-rw-rw-r-- 1 munin munin 473 2009-04-15 14:35 logo.png
-rw-rw-r-- 1 munin munin 3538 2009-04-15 14:35 style.css
drwxrwxr-x 2 munin munin 4096 2009-04-15 16:45 test

admin@abc:/etc/munin$ sudo ls -al /var/log/munin/
total 320
drwxrwx--- 2 munin adm 4096 2009-04-16 12:50 .
drwxr-xr-x 14 root root 4096 2009-04-16 06:38 ..
-rw-r--r-- 1 munin munin 24135 2009-04-16 14:00 munin-graph.log
-rw-r--r-- 1 munin munin 18270 2009-04-16 14:00 munin-html.log
-rw-r--r-- 1 munin munin 5235 2009-04-16 14:00 munin-limits.log
-rw-r--r-- 1 munin munin 259290 2009-04-16 14:00 munin-update.log

admin@abc:/etc/munin$ sudo ls -al /var/lib/munin/
total 44
drwxr-xr-x 3 munin munin 4096 2009-04-16 14:05 .
drwxr-xr-x 31 root root 4096 2009-04-15 14:32 ..
-rw-r--r-- 1 munin munin 19727 2009-04-16 14:05 datafile
-rw-r--r-- 1 munin munin 14 2009-04-16 14:05 limits
-rw-r--r-- 1 munin munin 649 2009-04-16 14:00 munin-graph.stats
-rw-r--r-- 1 munin munin 0 2009-04-16 14:05 munin-graph.stats.tmp
-rw-r--r-- 1 munin munin 1215 2009-04-16 14:05 munin-update.stats
drwxr-xr-x 2 munin munin 4096 2009-04-15 16:41 test

admin@abc:/etc/munin$ ls -al /var/run/munin/
total 24
drwxrwxr-x 2 munin munin 240 2009-04-16 14:05 .
drwxr-xr-x 12 root root 440 2009-04-15 14:32 ..
-rw-r--r-- 1 munin munin 5 2009-04-16 14:05 munin-datafile.lock
-rw-r--r-- 1 munin munin 5 2009-04-16 14:05 munin-graph.lock
-rw-r--r-- 1 munin munin 5 2009-04-16 14:05 munin-html.lock
-rw-r--r-- 1 munin munin 0 2009-04-16 14:05 munin-limits.lock
-rw-r--r-- 1 munin munin 5 2009-04-16 14:05 munin-localdomain-localhost.localdomain.lock
srwx------ 1 munin munin 0 2009-04-15 16:02 munin-server-socket.16550
srwx------ 1 munin munin 0 2009-04-15 16:13 munin-server-socket.16903
srwx------ 1 munin munin 0 2009-04-15 16:15 munin-server-socket.16999
-rw-r--r-- 1 munin munin 5 2009-04-16 14:05 munin-test-test.lock
-rw-r--r-- 1 munin munin 5 2009-04-16 14:05 munin-update.lock


----------
ERROR :

admin@abc:/usr/share/munin$ ./munin-update --debug --nofork --stdout --host xyz --service df -force-root
Error writing to /var/run/munin/munin-update.lock, wrong permissions at /usr/share/perl5/Munin.pm line 356.


All times are GMT +2. The time now is 20:51.

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