Dieses Dokuwiki verwendet ein von Anymorphic Webdesign erstelltes Thema.
2007年04月10日

Munin

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 関連のデータ追加手順>

  1. munin のプラグインを追加
    • # 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
  2. apache の server-status へのアクセスを許可
    1. /etc/apache2/apache2.conf の /server-status 設定を以下のように変更
      • <Location /server-status>
            SetHandler server-status
            Order deny,allow
            Deny from all
            Allow from 127.0.0.1
        </Location>
    2. apache を再起動
      • # /etc/init.d/apache2 restart

</box>

blog/2007/0410-0000.txt · 最終更新: 2012/04/08 10:46 (外部編集)
現在位置: ちゅの!gonta ブログ2007年Munin
Dieses Dokuwiki verwendet ein von Anymorphic Webdesign erstelltes Thema.
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0