安装zabbix之后,获取图形502错误,怎么办

思念伱 发布于 2017/03/17 19:51
阅读 458
收藏 0

本菜鸟在lnmp环境下安装zabbix之后,可以正常监控主机,但是图形界面显示不出来,F12后看到502错误:报502的访问路径是获取图形的这个:

http://192.168.90.22:8081/zabbix/chart2.php?graphid=550&period=3600&stime=20180317182701&updateProfile=1&profileIdx=web.screens&profileIdx2=550&width=1228

nginx的error.log中报错日志:

2017/03/17 17:40:59 [error] 23695#0: *3 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.90.138, server: 192.168.90.22, request: "GET /zabbix/chart2.php?graphid=549&period=3600&stime=20180317164058&updateProfile=1&profileIdx=web.screens&profileIdx2=549&width=1228 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "192.168.90.22:8081", referrer: "http://192.168.90.22:8081/zabbix/charts.php?fullscreen=0&groupid=2&hostid=10105&graphid=549"

 

nginx虚拟主机配置:

server {  
        listen       8081;  
        server_name  192.168.90.22;
        access_log   /usr/local/zabbix-3.2.4/data/logs/nginx/zhangcc.zabbix.com.access.log  main;
        
        index index.html index.php;
        root  /usr/local/zabbix-3.2.4/data/site/monitor;  
        
        location / {    
                        try_files $uri $uri/ /index.php?$args;
        }  
        location ~ ^(.+.php)(.*)$ {  
            fastcgi_pass 127.0.0.1:9000;#php-fpm的默认端口是9000
            fastcgi_index index.php;
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            include fastcgi_params;
        } 
}

 

php-fpm.conf的request_terminate_timeout参数已经设为0

request_terminate_timeout=0;

 

zabbix界面中文字数据都正常显示,就是图形出不来,网上查很久没弄好,特来求助,这个要怎么弄啊?快崩溃了。。

 

 

加载中
返回顶部
顶部