服務器:
ganglia 編譯參數
./configure --with-gmetad --enable-gexec
注意gmetad 依賴rrdtool-devel
cd gmond;
cp gmond.init.SuSE /etc/rc.d/gmond;
cp gmetad.init.SuSE /etc/rc.d/gmeta;
gmond --default_config > /etc/ganglia/gmond.conf
我這裏假設你已經有支持php的apache可以跑了
拷貝源碼包下的web界面
cp web/ /usr/local/ganglia-www
配置rrds
[root@localhost ganglia-3.0.4]# mkdir -p /var/lib/ganglia/rrds
[root@localhost ganglia-3.0.4]#chown –R nobody /var/lib/ganglia/rrds(沒有這個啓動不了gmetad)
看看
配置apache虛擬機
vhost:
<VirtualHost *:80>
DocumentRoot "/usr/local/ganglia-www"
ServerName 192.168.0.26
<Directory "/usr/local/ganglia-www">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
http.conf:
Alias /ganglia /usr/local/ganglia-www
<directory "/usr/local/ganglia-www">
Authtype basic
Options none
Allowoverride none
Order allow,deny
Allow from all
</directory>
ganglia/sbin/gmetad|gmond start啓動
還得讓apache能支持 php
LoadModule php5_module modules/libphp5.so
Options Indexes FollowSymLinks includes
<IfModule dir_module>
DirectoryIndex index.html index.shtml index.php index.htm
</IfModule>
DefaultType text/plain
AddType application/x-httpd-php .php
AddType text/html .shtml .html
AddOutputFilter INCLUDES .shtml .php
Include conf/extra/httpd-mpm.conf
Include conf/extra/httpd-vhosts.conf###################
Include conf/extra/httpd-default.conf