おのたく日記 YouTubeも始めました→
2008-08-25(Mon) muninが5分ごとにエラーを出す [長年日記]
■ [Debian]muninが5分ごとにエラーを出す
aptidude updateしたら、
Subject :Cron
if [ -x /usr/bin/munin-cron ]; then /usr/bin/munin-cron; fi (process:30003): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()
と、muninが5分ごとにエラーを出すようになってしまった。
としてみたら、どうやら「℃」が問題のようだ。
$ grep vlabel /usr/local/etc/munin/plugins/hddtemp_smartctl | od -c
0000000 p r i n t " g r a p h
0000020 _ v l a b e l t e m p i n
0000040 庵 ** \ n " ; \n
0000047
さて、どうすりゃええんだ。
[[FreeBSD] Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()より引用]
ということだったので、
/usr/share/munin/plugins# diff -u hddtemp_smartctl*
--- hddtemp_smartctl 2008-08-26 01:06:11.000000000 +0900
+++ hddtemp_smartctl.org 2008-07-21 08:36:17.000000000 +0900
@@ -130,7 +130,7 @@
} elsif ($ARGV[0] eq 'config') {
print "graph_title HDD temperature\n";
print "graph_args --base 1000 -l 0\n";
- print "graph_vlabel temp in -C\n";
+ print "graph_vlabel temp in �C\n";
print "graph_category sensors\n";
print "graph_info This graph shows the temperature in degrees Celsius of the hard drives in the machine.\n";
print "$_.label $_\n" foreach @drives
という対策をしてみたら、良い感じにエラーが無くなった。
|
(2008-08-26(Tue) 21:09)<br>まさにこれで嵌っていました。助かりました :)
(2008-08-27(Wed) 00:35)<br>載せたPatchは新・旧が逆でしたが、お役にたてて良かったです。<br>emacsで開いても、それらしい文字が見つからなかったので、本文で引用した中治さんの日記がなければ、私も原因を掴めなかったと思います。