分享

centos搭建Ganglia监控访问页面404

Joker 发表于 2016-3-23 09:50:36 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 2 9586
软件环境
centos6.4
ganglia-3.6.0
ganglia-web-3.5.10
nginx-1.6.0
pcre-8.33
php-5.5.14
rrdtool-1.4.7

nginx配置:
location /ganglia/ {
    root           /usr/local/ganglia/web;  #这是我ganglia-web目录
    fastcgi_pass   10.xxx.xxx.112:9000; #主节点
    fastcgi_index  index.php;
    fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
    include        fastcgi_params;
}


访问10.xxx.xxx.112/ganglia之后就是404,error日志信息

[mw_shl_code=html,true]2016/03/22 17:36:21 [error] 2740#0: *2 "/usr/local/nginx/html/ganglia/index.html" is not found (2: No such file or directory), client: 10.xx.xx.49, server: localhost, request: "GET //ganglia/ HTTP/1.1", host: "10.xx.xx.112"
2016/03/22 17:40:54 [error] 2740#0: *3 "/usr/local/nginx/html/ganglia/index.html" is not found (2: No such file or directory), client: 10.xx.xx.49, server: localhost, request: "GET /ganglia/ HTTP/1.1", host: "10.xx.xx.112"
2016/03/22 17:40:58 [error] 2740#0: *4 open() "/usr/local/nginx/html/ganglia" failed (2: No such file or directory), client: 10.xx.xx.49, server: localhost, request: "GET /ganglia HTTP/1.1", host: "10.xx.xx.112"
2016/03/22 17:41:05 [error] 2740#0: *3 open() "/usr/local/nginx/html/ganglia" failed (2: No such file or directory), client: 10.xx.xx.49, server: localhost, request: "GET /ganglia HTTP/1.1", host: "10.xx.xx.112"
2016/03/22 17:50:42 [error] 2821#0: *1 directory index of "/usr/local/nginx/html/ganglia/" is forbidden, client: 10.xx.xx.49, server: localhost, request: "GET /ganglia/ HTTP/1.1", host: "10.xx.xx.112"
2016/03/22 17:50:45 [error] 2821#0: *1 directory index of "/usr/local/nginx/html/ganglia/" is forbidden, client: 10.xx.xx.49, server: localhost, request: "GET /ganglia/ HTTP/1.1", host: "10.xx.xx.112"
2016/03/22 17:50:47 [error] 2821#0: *1 directory index of "/usr/local/nginx/html/ganglia/" is forbidden, client: 10.xx.xx.49, server: localhost, request: "GET /ganglia/ HTTP/1.1", host: "10.xx.xx.112"
2016/03/22 17:51:06 [error] 2821#0: *1 "/usr/local/nginx/html/ganglia/index.html" is not found (2: No such file or directory), client: 10.xx.xx.49, server: localhost, request: "GET /ganglia/ HTTP/1.1", host: "10.xx.xx.112"
2016/03/22 17:51:08 [error] 2821#0: *1 "/usr/local/nginx/html/ganglia/index.html" is not found (2: No such file or directory), client: 10.xx.xx.49, server: localhost, request: "GET /ganglia/ HTTP/1.1", host: "10.xx.xx.112"
2016/03/22 18:00:00 [error] 2867#0: *1 "/usr/local/nginx/html/ganglia/index.html" is not found (2: No such file or directory), client: 10.xx.xx.49, server: localhost, request: "GET /ganglia/ HTTP/1.1", host: "10.xx.xx.112"[/mw_shl_code]

说我这个路径下没有/usr/local/nginx/html/ganglia/,我是按照这个博客搭建的http://shiyanjun.cn/archives/893.html
有人遇到过这个问题吗?谢谢

已有(2)人评论

跳转到指定楼层
s060403072 发表于 2016-3-23 11:23:05
服务器无法正常提供信息,或是服务器无法回应,且不知道原因所返回的页面
/usr/local/nginx/html/ganglia/index.html
上面页面确保已经有了

回复

使用道具 举报

Joker 发表于 2016-3-23 11:25:01
s060403072 发表于 2016-3-23 11:23
服务器无法正常提供信息,或是服务器无法回应,且不知道原因所返回的页面
/usr/local/nginx/html/ganglia/ ...

是的,之前是不存在这个地址的页面,我试图将ganglia-web的整体copy过去。但是出现了403,还是无法访问页面
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条