tar xvzf ganglia-web-3.6.2.tar.gz -C /var/www/html/
cd /var/www/html/
mv ganglia-web-3.5.12 ganglia
chmod -R 777 /var/www/html/ganglia
cd /var/www/html/ganglia
cp conf_default.php conf.php
vim conf.php
conf.php中有些默认配置和以上设置不一样的需要进行修改:
# Gmetad-webfrontend version. Used to check for updates.#$conf['gweb_root'] = "/var/www/html/ganglia";
$conf['gweb_confdir'] = "/var/www/html/ganglia";
include_once $conf['gweb_root'] . "/version.php";## 'readonly': No authentication is required. All users may view all resources. No edits are allowed.# 'enabled': Guest users may view public clusters. Login is required to make changes. # An administrator must configure an authentication scheme and ACL rules.# 'disabled': Guest users may perform any actions, including edits. No authentication is required.$conf['auth_system'] = 'readonly';## The name of the directory in "./templates" which contains the# templates that you want to use. Templates are like a skin for the# site that can alter its look and feel.#$conf['template_name'] = "default";## If you installed gmetad in a directory other than the default# make sure you change it here.## Where gmetad stores the rrd archives.$conf['gmetad_root'] = "/var/lib/ganglia";
$conf['rrds'] = "${conf['gmetad_root']}/rrds";# Where Dwoo (PHP templating engine) store compiled templates$conf['dwoo_compiled_dir'] = "${conf['gweb_confdir']}/dwoo/compiled";
$conf['dwoo_cache_dir'] = "${conf['gweb_confdir']}/dwoo/cache";# Where to store web-based configuration$conf['views_dir'] = $conf['gweb_confdir'] . '/conf';
$conf['conf_dir'] = $conf['gweb_confdir'] . '/conf';1234567891011121314151617181920212223242526272829303132333435363738问题及解决方式
编译rrdtool 错误
/.libs/librrd.so: undefined reference to xmlTextReaderValue@LIBXML2_2.4.30'
./.libs/librrd.so: undefined reference toxmlTextReaderNodeType@LIBXML2_2.4.30’
./.libs/librrd.so: undefined reference to xmlStrdup@LIBXML2_2.4.30'
./.libs/librrd.so: undefined reference toxmlTextReaderName@LIBXML2_2.4.30’
./.libs/librrd.so: undefined reference to xmlNewTextReaderFilename@LIBXML2_2.4.30'
./.libs/librrd.so: undefined reference toxmlStrcasestr@LIBXML2_2.4.30’
./.libs/librrd.so: undefined reference to xmlFree@LIBXML2_2.4.30'
./.libs/librrd.so: undefined reference toxmlTextReaderRead@LIBXML2_2.4.30’
./.libs/librrd.so: undefined reference to xmlFreeTextReader@LIBXML2_2.4.30'
./.libs/librrd.so: undefined reference toxmlTextReaderGetParserLineNumber@LIBXML2_2.6.17’
./.libs/librrd.so: undefined reference to `xmlStrcasecmp@LIBXML2_2.4.30’