You are not logged in.

#1 2010-02-26 16:48:43

theking2
Banned
From: Romanshorn Switzerland
Registered: 2009-03-04
Posts: 372

[SOLVED] munin not installed correctly/completely

After following the munin installation http://wiki.archlinux.org/index.php/Munin I'm stuck at the early stage. After getting apache php php-apache munin and munin-node and starting the daemons httpd and munin-node nothing happens. There is no directory munin created under /srv/http. I did the sanity check as pointed out in the wiki and that works fine. A ps reveals that both httpd and munin are running.

There must be a step that is excluded in the wiki that needs to be done.

Any pointers are welcomed.
JK

Last edited by theking2 (2016-05-21 05:32:11)


archlinux on a Gigabyte C1037UN-EU, 16GiB
a Promise  PDC40718 based ZFS set
root on a Samsung SSD PB22-J
running LogitechMediaServer(-git), Samba, MiniDLNA, TOR

Offline

#2 2010-02-26 18:39:46

winch
Member
Registered: 2008-04-13
Posts: 43

Re: [SOLVED] munin not installed correctly/completely

Packages shouldn't touch anything in /srv/http. You need to make the /srv/http directory yourself and the munin user needs to be able to write to it.
Something like
mkdir /srv/http/munin
chown munin:munin /srv/http/munin

Then cron runs munin-cron every 5 minutes. munin-cron generates all the html files and graphs and writes them into /srv/http/munin

Last edited by winch (2010-02-26 18:50:42)

Offline

#3 2010-02-26 19:22:45

theking2
Banned
From: Romanshorn Switzerland
Registered: 2009-03-04
Posts: 372

Re: [SOLVED] munin not installed correctly/completely

thank winch, that calls for an update of the wiki. Yet after creating the directory by hand and setting the proper owner, and restarting the daemon (just to make sure) the folder still is empty.


archlinux on a Gigabyte C1037UN-EU, 16GiB
a Promise  PDC40718 based ZFS set
root on a Samsung SSD PB22-J
running LogitechMediaServer(-git), Samba, MiniDLNA, TOR

Offline

#4 2010-02-27 12:54:44

winch
Member
Registered: 2008-04-13
Posts: 43

Re: [SOLVED] munin not installed correctly/completely

The cronjob generates the html and graphs. You can run it like this,

# su - munin --shell=/bin/bash
$ munin-cron

I guess you get the following output

cp: cannot create regular file `/usr/share/munin/www/style.css': Permission denied
[ERROR] Could not copy style.css from /etc/munin/templates/ to /usr/share/munin/www

You need to edit /etc/munin/munin.conf
and change
# htmldir /usr/share/munin/www
to
htmldir /srv/http/munin

The cronjob should then run without errors.

Offline

#5 2010-03-06 23:24:28

theking2
Banned
From: Romanshorn Switzerland
Registered: 2009-03-04
Posts: 372

Re: [SOLVED] munin not installed correctly/completely

Thanks winch, that surely did help.

After playing around with munin on a debian box I realized there is quite a difference between debian and "the arch way". I indeed had to make the change to the munin.conf file.

htmldir /srv/http/munin

and also the /etc/munin/plugins folder was empty on install so the following were added manually

lrwxrwxrwx 1 root root 26 Mar  6 19:57 cpu -> /usr/lib/munin/plugins/cpu
lrwxrwxrwx 1 root root 31 Mar  6 22:11 cpuspeed -> /usr/lib/munin/plugins/cpuspeed
lrwxrwxrwx 1 root root 25 Mar  6 20:01 df -> /usr/lib/munin/plugins/df
lrwxrwxrwx 1 root root 33 Mar  6 19:58 interrupts -> /usr/lib/munin/plugins/interrupts
lrwxrwxrwx 1 root root 29 Mar  6 19:58 memory -> /usr/lib/munin/plugins/memory
lrwxrwxrwx 1 root root 30 Mar  6 19:59 netstat -> /usr/lib/munin/plugins/netstat
lrwxrwxrwx 1 root root 27 Mar  6 20:00 nfsd -> /usr/lib/munin/plugins/nfsd
lrwxrwxrwx 1 root root 31 Mar  6 20:00 sensors_fans -> /usr/lib/munin/plugins/sensors_
lrwxrwxrwx 1 root root 31 Mar  6 20:00 sensors_temp -> /usr/lib/munin/plugins/sensors_
lrwxrwxrwx 1 root root 31 Mar  6 20:00 sensors_volt -> /usr/lib/munin/plugins/sensors_
lrwxrwxrwx 1 root root 27 Mar  6 22:11 swap -> /usr/lib/munin/plugins/swap
lrwxrwxrwx 1 root root 29 Mar  6 22:11 vmstat -> /usr/lib/munin/plugins/vmstat

btw on debian the plugins are under /usr/share/munin/plugins which is, I believe the standard and makes slightly more sense.


After these changes and a /etc/init.d/munin restart munin was working as advertised

Last edited by theking2 (2010-03-06 23:26:36)


archlinux on a Gigabyte C1037UN-EU, 16GiB
a Promise  PDC40718 based ZFS set
root on a Samsung SSD PB22-J
running LogitechMediaServer(-git), Samba, MiniDLNA, TOR

Offline

Board footer

Powered by FluxBB