2013-01-13 58 views
2

Munin安裝在FreeBSD 8.0上。 地址:http://site.com/munin/ 路徑:在/ usr /本地/網絡/穆寧/Munin縮放不起作用

問題:變焦不工作(圖像不顯示)。在Apache日誌我看到:

[Sun Jan 13 16:42:25 2013] [error] [client 1.2.3.4] File does not exist: /usr/home/site/htdocs, referer: http://site.com/munin/static/dynazoom.html?plugin_name=com%2Fsite.com%2Fhttp_response_time_site&start_iso8601=2013-01-12T08%3A26%3A43%2B0400&stop_iso8601=2013-01-12T14%3A17%3A43%2B0400&start_epoch=1357943743&stop_epoch=1357996393&lower_limit=&upper_limit=&size_x=800&size_y=400&cgiurl_graph= 

我的httpd.conf:

Alias /munin/ "/usr/local/www/munin/" 

如何解決呢?

+0

這看起來像一個Apache配置問題。最好在[serverfault](http://serverfault.com/)上提問。 –

回答

2

我知道這是一歲多,但我敢肯定還有其他的有這個問題的人,並在谷歌上找到這個問題。 (像我一樣)

這是爲Debian 7.6 + Munin版本2.0.6-4 + deb7u2。縮放實際上是工作,但它只是本地主機。我到目前爲止還沒有在Freebsd或任何其他bsd/linux發行版上進行測試,但我認爲問題&解決方案會類似。

請編輯這個文件:

/etc/munin/apache2.conf

# Enables fastcgi for munin-cgi-graph if present 
ScriptAlias /munin-cgi/munin-cgi-graph /usr/lib/munin/cgi/munin-cgi-graph 
<Location /munin-cgi/munin-cgi-graph> 
     Order allow,deny 
#  Allow from localhost 127.0.0.0/8 ::1 
     Allow from all 
     # AuthUserFile /etc/munin/munin-htpasswd 
     # AuthName "Munin" 
     # AuthType Basic 
     # require valid-user 
     <IfModule mod_fastcgi.c> 
       SetHandler fastcgi-script 
     </IfModule> 
</Location> 

ScriptAlias /munin-cgi/munin-cgi-html /usr/lib/munin/cgi/munin-cgi-html 
<Location /munin-cgi/munin-cgi-html> 
     Order allow,deny 
#  Allow from localhost 127.0.0.0/8 ::1 
     Allow from all 
     # AuthUserFile /etc/munin/munin-htpasswd 
     # AuthName "Munin" 
     # AuthType Basic 
     # require valid-user 
     <IfModule mod_fastcgi.c> 
       SetHandler fastcgi-script 
     </IfModule> 
</Location> 

你會看到 「從本地主機127.0.0.0/8 :: 1允許」 兩個munin- cgi-graph和munin-cgi-html。請註釋這些行並添加「全部允許」(根據您的安全設置進行更改),然後重新啓動apache2。現在你應該可以放大你的圖表。

1

我對Ubuntu的12.04相同的問題,而這些步驟固定它:

  • 關閉SELINUX:$ sudo setenforce 0
  • 一下添加到Apache的虛擬主機配置:ScriptAlias /munin-cgi/ "/var/www/cgi-bin/"
  • /var/log/munin更改權限,以便Apache可以在那裏打開文件。

找出穆寧-CGI-圖被安裝在系統上:

  • find/-name munin-cgi-graph