おのたく日記 YouTubeも始めました→
2010-02-26(Fri) muninがエラーを出す [長年日記]
■ [Debian]muninがエラーを出す
munin-modeを1.4.2-3にupgradeしたら「unlink failed: そのようなファイルやディレクトリはありません at /usr/share/perl5/Munin/Master/Update.pm line 162」とデータ収集時にエラーが出るようになった。
updated squeeze munin to 1.4 and got every 5 minute the following error:
unlink failed: Datei oder Verzeichnis nicht gefunden at /usr/share/perl5/Munin/Master/Update.pm line 162
"Datei oder Verzeichnis nicht gefunden" is "File or directory not found"
The system is running with LANG=de_DE.UTF-8
If changed to C then there is no problem.
As a workaround I changed the cron script:
--- /etc/cron.d/munin.bak 2010-01-25 10:08:09.000000000 +0100
+++ /etc/cron.d/munin 2010-01-25 10:08:21.000000000 +0100
@@ -4,5 +4,5 @@
MAILTO=root
-*/5 * * * * munin if [ -x /usr/bin/munin-cron ]; then /usr/bin/munin-cron; fi
+*/5 * * * * munin if [ -x /usr/bin/munin-cron ]; then LC_ALL=C /usr/bin/munin-cron; fi
14 10 * * * munin if [ -x /usr/share/munin/munin-limits ]; then /usr/share/munin/munin-limits --force --contact nagios --contact old-nagios; fi
I think its important because on a non C or en_US system it breaks the munin installation.
ってことらしいので、crontabではlocaleをCとすることで対応した。
|