小编aag*_*aag的帖子

munin + nginx:没有动态图

我无法让 Munin 动态变焦工作。我很确定问题与 Nginx 配置有关。任何生成缩放图的尝试都会触发 nginx 日志中的以下错误条目:

2015/02/22 13:26:01 [error] 4782#0: *2580 open() "/data/munin/usr/share/munin/cgi/munin-cgi-graph/bellaria/antergos1.bellaria/diskstats_latency/AntergosVG_AntergosRoot-pinpoint=1421756527,1424607727.png" failed (2: No such file or directory), client: 10.10.10.25, server: munin, request: "GET /usr/share/munin/cgi/munin-cgi-graph/bellaria/antergos1.bellaria/diskstats_latency/AntergosVG_AntergosRoot-pinpoint=1421756527,1424607727.png?&lower_limit=&upper_limit=&size_x=800&size_y=400 HTTP/1.1", host: "munin.bellaria", referrer: "http://munin.bellaria/static/dynazoom.html?cgiurl_graph=/usr/share/munin/cgi/munin-cgi-graph&plugin_name=bellaria/antergos1.bellaria/diskstats_latency/AntergosVG_AntergosRoot&size_x=800&size_y=400&start_epoch=1421756527&stop_epoch=1424607727"
Run Code Online (Sandbox Code Playgroud)

具体来说,我怀疑 fastCGI 参数有问题。好心人可以看看我的 Munin 虚拟服务器(见下文)并向我解释有什么问题吗?这让我发疯 - 但我有一种预感,任何专家都会在几分之一秒内确定问题......

# Munin server
server {
       listen 80;
    server_name munin munin.bellaria;
    root /data/munin;
    allow all;
    access_log logs/munin.access.log;
    error_log logs/munin.error.log;

    location / {
        index index.html index.htm index.php;
        }

    location ~ \.(php|html|html|cgi)$ {
        fastcgi_pass   unix:/run/php-fpm/php-fpm.sock;
        fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
        fastcgi_param   AUTH_USER $remote_user;
        fastcgi_param   REMOTE_USER …
Run Code Online (Sandbox Code Playgroud)

munin nginx fastcgi

6
推荐指数
1
解决办法
6144
查看次数

标签 统计

fastcgi ×1

munin ×1

nginx ×1