安装
apt-get install munin
apt-get install spawn-fcgi
spawn-fcgi -s /var/run/munin/fcgi-graph.sock -U www-data -u munin -g munin /usr/lib/munin/cgi/munin-cgi-graph
nginx
server {
listen 80;
server_name munin.dynaccount.com;
root /var/cache/munin/www;
location / {
try_files $uri $uri/ =404;
}
location ^~ /munin-cgi/munin-cgi-graph/ {
fastcgi_split_path_info ^(/munin-cgi/munin-cgi-graph)(.*);
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_pass unix:/var/run/munin/fcgi-graph.sock;
include fastcgi_params;
}
}
当我单击图表时,浏览器中会返回以下错误
502错误的网关
http://munin.domain/munin-cgi/munin-cgi-graph/localdomain/localhost.localdomain/exim_mailqueue-pinpoint=1492758910,1492866910.png?&lower_limit=&upper_limit=&size_x=800&size_y=400