ganglia安装教程
ganglia 安装教程依赖软件
2.http://savannah.nongnu.org/download/confuse/confuse-2.7.tar.gz
3.http://nchc.dl.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz
4.http://zlib.net/zlib-1.2.8.tar.gz
5.ftp://xmlsoft.org/libxml2/libxml2-2.7.8.tar.gz
6.http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.4.8.tar.gz
7.http://cznic.dl.sourceforge.net/project/ganglia/ganglia%20monitoring%20core/3.6.0/ganglia-3.6.0.tar.gz
ganglia配置gmetad配置 在ganglia安装目录执行如下操作
配置gmetad.conf 1.修改gmetad.conf 中 data_source
gmond配置
配置gmond.conf 修改 cluster中 name 为在gmetad.conf 中的data_source cluster { name = "hadoop201" owner = "nobody" latlong = "unspecified" url = "unspecified" } Ganglia-web环境部署
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';
问题及解决方式
/.libs/librrd.so: undefined reference to `xmlTextReaderValue@LIBXML2_2.4.30’ ./.libs/librrd.so: undefined reference to `xmlTextReaderNodeType@LIBXML2_2.4.30’ ./.libs/librrd.so: undefined reference to `xmlStrdup@LIBXML2_2.4.30’ ./.libs/librrd.so: undefined reference to `xmlTextReaderName@LIBXML2_2.4.30’ ./.libs/librrd.so: undefined reference to `xmlNewTextReaderFilename@LIBXML2_2.4.30’ ./.libs/librrd.so: undefined reference to `xmlStrcasestr@LIBXML2_2.4.30’ ./.libs/librrd.so: undefined reference to `xmlFree@LIBXML2_2.4.30’ ./.libs/librrd.so: undefined reference to `xmlTextReaderRead@LIBXML2_2.4.30’ ./.libs/librrd.so: undefined reference to `xmlFreeTextReader@LIBXML2_2.4.30’ ./.libs/librrd.so: undefined reference to `xmlTextReaderGetParserLineNumber@LIBXML2_2.6.17’ ./.libs/librrd.so: undefined reference to `xmlStrcasecmp@LIBXML2_2.4.30’ ganglia编译必须依赖rrdtool,而rrdtool安装不同机器可能出现莫名的安装错误,此时如果机器可以连接网络可以使用 下载rrdtool-1.4.8.tar.gz ,解压后,将rrdtool-1.4.8/src/.libs 中相应库拷贝到如下目录,拷贝后可以不用再编译将rrdtool: 进入rrdtool-1.4.8所在目录执行如下拷贝操作: cp src/.libs/*.so* /usr/local/lib/ cp src/.libs/*.a /usr/local/lib/ cp src/.libs/*.la /usr/local/lib/ cp src/rrd*.h /usr/local/include
metad: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory 解决方法 执行如下命令:
然后建立连接: 效果展示(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |