LoginSignup
5
5

More than 5 years have passed since last update.

munin install in Raspberry Pi

Last updated at Posted at 2013-04-03

Install

$ sudo apt-get -y install apache2 munin munin-node
$ sudo ln -s /etc/munin/apache.conf /etc/apache2/sites-enabled/munin

$ sudo mkdir -p /var/munin

$ cd /etc/munin
$ sudo cp munin.conf munin.conf.def
$ sudo cp apache.conf apache.conf.def

$ sudo vi munin.conf
$ diff munin.conf.def munin.conf
9c9
< #htmldir /var/cache/munin/www
---
> htmldir /var/munin
98c98
< [localhost.localdomain]
---
> [localhost.raspberrypi]

$ sudo vi apache.conf
$ diff apache.conf.def apache.conf
2c2
< Alias /munin /var/cache/munin/www
---
> Alias /munin /var/munin/
16c16
< <Directory /var/cache/munin/www>
---
> <Directory /var/munin/>
18c18
<         Allow from localhost 127.0.0.0/8 ::1
---
>         Allow from all
64c64
<   Allow from localhost 127.0.0.0/8 ::1
---
>   Allow from all
77c77
<   Allow from localhost 127.0.0.0/8 ::1
---
>   Allow from all


$ sudo sh -c 'echo "ServerName raspberrypi" >> /etc/apache2/conf.d/servername.conf'
$ sudo service apache2 restart

$ sudo chown -R munin. /etc/munin
$ sudo chown -R munin. /var/lib/munin
$ sudo chown -R munin. /var/munin

$ sudo -u munin /usr/bin/munin-cron

access: http://{raspberrypi-ip}/munin/

Add Plugin

$ cd /etc/munin/plugins
$ sudo ln -s /usr/share/munin/plugins/apache_accesses .
$ sudo -u munin /usr/bin/munin-cron

syslog ignore cron Log

$ sudo cp rsyslog.conf rsyslog.conf.def
$ sudo vi rsyslog.conf
$ diff rsyslog.conf rsyslog.conf.def 
62,63c62,63
< *.*;auth,authpriv.none,cron.none      -/var/log/syslog
< cron.*                /var/log/cron.log
---
> *.*;auth,authpriv.none        -/var/log/syslog
> #cron.*               /var/log/cron.log

$ sudo service rsyslog restart
5
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
5