| 2007年04月10日 |
|---|
MOONFGIFT の 簡単に設定できるシステム監視「Munin」 を読んで、 Munin を導入した。
Ubuntu なので、munin パッケージと munin-node パッケージをインストール指定するだけ。 http://localhost/munin/index.html にグラフが表示されるようになる。
問題が一つ。 グラフの横軸が文字化けして□が表示されている。
鷹の島 を参考に /etc/cron.d/munin を変更した。
#*/5 * * * * munin if [ -x /usr/bin/munin-cron ]; then /usr/bin/munin-cron;fi */5 * * * * munin if [ -x /usr/bin/munin-cron ]; then LANG=C /usr/bin/munin-cron; fi
apache 関連のデータも表示させてみた。 GIGAZINE の Muninをカスタマイズして表示されるグラフの種類を増やしてみる を参考にした。 <box 80% round blue|apache 関連のデータ追加手順>
# ln -s /usr/share/munin/plugins/apache_accesses /etc/munin/plugins/apache_accesses # ln -s /usr/share/munin/plugins/apache_processes /etc/munin/plugins/apache_processes # ln -s /usr/share/munin/plugins/apache_volume /etc/munin/plugins/apache_volume
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Location>
# /etc/init.d/apache2 restart
</box>