タグのついた記事 munin

muninの設定ファイルのありかとディレクトリ設定ミスによるエラー

cp: cannot create regular file `/var/www/munin/’: Is a directory
cp: cannot create regular file `/var/www/munin/’: Is a directory
cp: cannot create regular file `/var/www/munin/’: Is a directory
Cannot open /var/www/munin/localhost/localhost-apache_accesses.html at /usr/share/munin/munin-html line 488.

こういうエラーがcron経由で5分おきに送られてきているならmuninまわりのディレクトリ設定にミスがあるので、/etc/munin/munin.conf や /etc/httpd/conf.d/munin.conf などをいじってなんとかする。

具体的には以下など参照
CentOSにmuninをインストール – yukiwataの日記
CentOS に Munin をインストールする – Enjoi Blog
[munin] どうしてもApacheをインストールできない場合 – nullpopopo

コメントを書く

muninのエラー「Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()」について

CentOS環境なら/etc/munin/plugins/にあるhddtemp_smartctlというファイルの138行目にある「°」の記号が原因。

とりあえず本家で修正されるまではその部分をDegCなりに変更してお茶を濁す。
参考 http://www.sandeinc.com/~eguchi/diary/20080731.html

コメントを書く

muninでpostfixのデータグラフを表示するには

ln -s /usr/share/munin/plugins/postfix_mailqueue /etc/munin/plugins/postfix_mailqueue
ln -s /usr/share/munin/plugins/postfix_mailstats /etc/munin/plugin
s/postfix_mailstats
ln -s /usr/share/munin/plugins/postfix_mailvolume /etc/munin/plugins/postfix_mailvolume

service munin-node restart

5分後を待つ

コメントを書く

munin-cronからcannot open ~というメールが送られてきて動かない場合

Cannot open /var/www/html/munin/localhost/localhost-cpu.html at /usr/share/munin/munin-html line 488.

このようなメールがmunin-cronから送られてきて、muninが更新されない場合、muninの表示ディレクトリの所有ユーザーとグループ(Fedora8でyumを使ってインストールした場合、標準では/var/www/html/munin)を、
chown -R munin:munin /var/www/html/munin
等といったコマンドでuser:munin group:muninに変更してやると、動くようになる。

コメントを書く