おのたく日記 YouTubeも始めました→
2012-09-08(Sat) [長年日記]
■ [Debian] munin:amd64 2.0.5-1 -> 2.0.6-1 したらグラフが出ない
2月22日の日記のようにmuninのグラフ表示はオンデマンドのCGIで作っているのだけど、2.0.5-1 -> 2.0.6-1とバージョンアップしたらグラフがでなくなった。
# Enables fastcgi for munin-cgi-graph if present
ScriptAlias /cgi-bin/munin-cgi-graph /usr/lib/munin/cgi/munin-cgi-graph
[/etc/munin/apach.confより引用]
となっているのだけど、何故だが/etc/apache2/conf.d/muninから/etc/munin/apache.confのシンボリックリンクが作られなくて、この設定が読み込まれていなかったので、
# cd /etc/apache/conf.d/
#ln -s ../../munin/apache.conf munin
[/var/lib/dpkg/munin.postinstから真似より引用]
とした。
しかしこれでも、ScriptAliasが効かない。/etc/apache2/sites-available/cgi-binにScriptAlias /cgi-bin/ /usr/lib/cgi-bin/はあるけれど、conf.dよりsites-avaliableの方があとで読まれるはずだけど…
原因が究明できないけど、とりあえず
# cd /usr/lib/cgi-bin/
ln -si /usr/lib/munin/cgi/munin-cgi-graph
とシンボリックリンクを貼って動かすことにした。
|