munin の設定と起動
まずは設定を確認。
/etc/munin/munin.conf に設定が書いてあって、コメントが多くて長いけど結局はこんだけ。
dbdir /var/lib/munin htmldir /var/www/munin logdir /var/log/munin rundir /var/run/munin tmpldir /etc/munin/templates [localhost] address 127.0.0.1 use_node_name yes
で、/etc/httpd/conf.d/munin.conf にはこんな感じ。
ScriptAlias /munin/cgi/ /var/www/munin/cgi/ Alias /munin/ /var/www/munin/
というわけで、サーバの /munin(http://サーバのアドレス/munin)にアクセスすればデータが表示されるようになってる。
特に変更する設定はないので、このまま munin-node を起動。
[paraches@localhost ~]$ sudo /etc/init.d/munin-node start Starting Munin Node: [ OK ] [paraches@localhost ~]$
自動的に起動する様に設定
[paraches@localhost ~]$ sudo /sbin/chkconfig --list munin-node munin-node 0:off 1:off 2:off 3:off 4:off 5:off 6:off [paraches@localhost ~]$ sudo /sbin/chkconfig munin-node on [paraches@localhost ~]$ sudo /sbin/chkconfig --list munin-node munin-node 0:off 1:off 2:on 3:on 4:on 5:on 6:off [paraches@localhost ~]$
最後に apache を再起動
[paraches@localhost ~]$ sudo /etc/init.d/httpd restart httpd を停止中: [ OK ] httpd を起動中: [ OK ] [paraches@localhost ~]$
これで http://サーバのアドレス/munin にアクセスすれば、munin の標準?のグラフは見られる様になった!