ganglia 问题求教

杨东祥 发布于 2014/12/01 20:58
阅读 439
收藏 0

系统环境: Centos 6.5 x86_64

软件版本: ganglia-3.6.1  rrdtool-1.4.7.tar.gz apapche-2.4.10 php-5.4.35

配置文件信息:

ganglia gmetad.conf

data_source "mycluster" 10  localhost 192.168.10.13

gridname "mygrid"

xml_port 8651

interactive_port 8652

rrd_rootdir "/opt/app/ganglia/rrds"

httpd.conf  配置文件信息

PidFile /usr/local/apache/logs/httpd.pid
Listen 80
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_socache_module modules/mod_authn_socache.so
LoadModule authn_core_module modules/mod_authn_core.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_core_module modules/mod_authz_core.so
LoadModule access_compat_module modules/mod_access_compat.so
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
LoadModule reqtimeout_module modules/mod_reqtimeout.so
LoadModule filter_module modules/mod_filter.so
LoadModule mime_module modules/mod_mime.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule env_module modules/mod_env.so
LoadModule headers_module modules/mod_headers.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule version_module modules/mod_version.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so
LoadModule ssl_module modules/mod_ssl.so
LoadModule mpm_event_module modules/mod_mpm_event.so
LoadModule unixd_module modules/mod_unixd.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule dir_module modules/mod_dir.so
LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so
<IfModule unixd_module>
User nobody
Group nobody
</IfModule>
ServerAdmin you@example.com
ServerName 192.168.10.251:80
<Directory />
    AllowOverride none
    Require all granted
</Directory>
<Directory "/usr/local/apache/htdocs">
    Options Indexes FollowSymLinks
    AllowOverride None
    Require all granted
</Directory>
<IfModule dir_module>
    DirectoryIndex index.php index.html
    AddType application/x-httpd-php .php
</IfModule>
<Files ".ht*">
    Require all denied
</Files>
ErrorLog "logs/error_log"
LogLevel warn
#<IfModule log_config_module>
#    LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i"" combined
#    LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i"" main
#    LogFormat "%h %l %u %t "%r" %>s %b" common
#    <IfModule logio_module>
#      LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i" %I %O" combinedio
#    </IfModule>
#    CustomLog "logs/access_log" common
#</IfModule>
LogLevel warn


<IfModule log_config_module>
    #
    # The following directives define some format nicknames for use with
    # a CustomLog directive (see below).
    #
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common


    <IfModule logio_module>
      # You need to enable mod_logio.c to use %I and %O
      LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
    </IfModule>


    #
    # The location and format of the access logfile (Common Logfile Format).
    # If you do not define any access logfiles within a <VirtualHost>
    # container, they will be logged here.  Contrariwise, if you *do*
    # define per-<VirtualHost> access logfiles, transactions will be
    # logged therein and *not* in this file.
    #
    CustomLog "logs/access_log" common


    #
    # If you prefer a logfile with access, agent, and referer information
    # (Combined Logfile Format) you can use the following directive.
    #
    #CustomLog "logs/access_log" combined
</IfModule>
<IfModule alias_module>
    ScriptAlias /cgi-bin/ "/usr/local/apache/cgi-bin/"
</IfModule>
<IfModule cgid_module>
</IfModule>
<Directory "/usr/local/apache/cgi-bin">
    AllowOverride None
    Options None
    Require all granted
</Directory>
<IfModule mime_module>
    TypesConfig /usr/local/apache/conf/mime.types
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps
</IfModule>
Include /usr/local/apache/conf/extra/httpd-vhosts.conf
Include /usr/local/apache/conf/extra/httpd-default.conf
<IfModule proxy_html_module>
Include /usr/local/apache/conf/extra/proxy-html.conf
#</IfModule>
#Include /usr/local/apache2410/conf/extra/httpd-ssl.conf
#<IfModule ssl_module>
#SSLRandomSeed startup builtin
#SSLRandomSeed connect builtin
</IfModule>

http-vhost.conf 配置文件

<VirtualHost *:80>
    ServerAdmin test@163.com
    ServerName 192.168.10.251
    DocumentRoot "/usr/local/apache/htdocs"
    <Directory "/usr/local/apache/htdocs" >
        Require all granted
    </Directory>
   <LocationMatch "^(.*\.php)$">
    ProxyPass fcgi://127.0.0.1:9000/usr/local/apache/htdocs/$1
    </LocationMatch>
    ErrorLog "logs/gangliaweb-error.log"
    CustomLog "logs/gangliaweb-access.log" common
</VirtualHost>

ganglia-web 中conf_default.php配置如下:

$conf['gweb_confdir'] = "/usr/local/apache/htdocs/ganglia";已修改属主和属组为nobody

$conf['gmetad_root'] = "/opt/app/ganglia";

$conf['rrds'] = "${conf['gmetad_root']}/rrds"; 已创建,并授权用户为nobody

$conf['dwoo_compiled_dir'] = "${conf['gweb_confdir']}/dwoo/compiled"; 已创建,并授权为777

$conf['dwoo_cache_dir'] = "${conf['gweb_confdir']}/dwoo/cache";已创建,并授权为777

$conf['rrdtool'] = "/opt/rrdtool/bin";


如果修改$conf['rrdtool'] = "/opt/rrdtool/bin"; 为$conf['rrdtool'] = "/opt/rrdtool/bin/rrdtool";系统负载会很高,后台会产生大量的rrdtool进程。如果是/opt/rrdtool/bin,则很快会降下来。

另外就是按照上述配置完成以后,页面图片不显示。系统防火前已关闭,selinux也已经disabled。


加载中
返回顶部
顶部