Welcome 微信登录

首页 / 操作系统 / Linux / Ganglia3.1.7安装与配置

一、所需要软件二、安装过程    1、Ganglia运行平台的安装    2、Ganglia依赖库的安装    3、RRDTool的安装    4、Ganglia的安装 (包括使用yum方式安装)
三、简单配置四、启动与访问五、被监控节点上安装Ganglia (包括使用yum方式安装)
六、遇到的问题,及解决办法  流行的开源服务器集群监控工具有很多,例如Nagios、Cacti、Ganglia、Zenoss、Clumon,它们在底层都利用了RRDTool。国内最常用的就是Cacti+Nagios,但是Ganglia其实也很不错,Ganglia+Nagios的组合也很强大。Ganglia是一个可伸缩的监控系统,尤其适合用来监计算机集群、网格等。Ganglia监控系统的组成部分包括:两个独立的daemon,一个基于PHP的web前端,和一些其它的应用程序。gmond(Ganglia Monitoring Daemon):运行于节点上的daemongmetad(Ganglia Meta Daemon):服务器端的daemonGanglia PHP Web Frontend:基于PHP的web前端 Ganglia官网:http://ganglia.info/Ganglia Wiki:http://sourceforge.net/apps/trac/ganglia 一、所需软件:平台:linux+apache+php 依赖库:apr-devel apr-util check-devel cairo-devel pango-devel libxml2-develrpmbuild glib2-devel dbus-devel freetype-devel fontconfig-devel gcc-c++ expat-develpython-devel libXrender-devellibconfuse(它无法通过yum安装)
pcre(无法通过yum安装)
 RRDTool:rrdtool-1.4.5.tar.gz Ganglia:ganglia-3.1.7.tar.gz 二、安装过程参考了Ganglia Wiki上的安装配置文档,以及IBM网站上《Ganglia 和 Nagios》: 1)apache+php的安装:大略如下:apache:
  1. wget http://labs.renren.com/apache-mirror//httpd/httpd-2.2.19.tar.gz 
  2. tar -zxvf httpd-2.2.19.tar.gz 
  3. cd httpd-2.2.19 
  4. ./configure --prefix=/usr/local/apache2 --enable-so --enable-mods-shared=most 
  5. make && make install 
  6.   
  7. /usr/local/apache2/bin/apachectl start 
http://192.168.9.45,访问成功! php:准备手动编译安装,但是在下载gd库时出错,没有下载到,索性使用yum安装
  1. yum -y install zlib libpng jpeg freetype2 libxml2 gdphp-mbstring 
  2. yum -y install php 
使用apache支持php:
  1. cp /usr/lib64/httpd/modules/libphp5.so /usr/local/apache2/modules/  
然后,vi /usr/local/apache2/conf/httpd.conf,添加:
  1. <FilesMatch .php$> 
  2.     SetHandler application/x-httpd-php 
  3. </FilesMatch> 
  4. <FilesMatch ".ph(p[2-6]?|tml)$"> 
  5.     SetHandler application/x-httpd-php 
  6. </FilesMatch> 
  7. <FilesMatch ".phps$"> 
  8.     SetHandler application/x-httpd-php-source 
  9. </FilesMatch> 
  10.   
  11. LoadModule php5_module modules/libphp5.so 
  12.   
  13. <IfModule dir_module> 
  14.    DirectoryIndex index.html index.php 
  15. </IfModules>  
重启apache,测试PHP是否安装成功:vi /usr/local/apache2/htdocs/index.php,添加:
  1. <? 
  2. phpinfo(); 
  3. ?> 
访问:http://192.168.9.45/index.php,访问成功! 2)依赖库的安装:
  1. yum -y install apr-devel apr-util check-devel cairo-devel pango-devel libxml2-devel rpmbuild glib2-devel dbus-devel freetype-devel fontconfig-devel gcc-c++ expat-devel python-devel libXrender-devel 
3)libconfuse的安装(自己使用google搜索下载地址):
  1. wget http://savannah.nongnu.org/download/confuse/confuse-2.7.tar.gz 
  2. tar -zxvf confuse-2.7.tar.gz 
  3. cd confuse-2.7 
  4. ./configure CFLAGS=-fPIC --disable-nls
  5. make && make install 
调整lib库的位置:vi /etc/ld.so.conf.d/libconfuse.conf,添加:/usr/local/lib,然后/sbin/ldconfig -v 
4)RRDTool的安装:
  1. wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.4.5.tar.gz 
  2. tar -zxvf rrdtool-1.4.5.tar.gz 
  3. cd rrdtool-1.4.5 
  4. ./configure --prefix=/usr/local 
  5. make && make install 
调整lib库的位置:vi /etc/ld.so.conf.d/librrd.conf,添加:/usr/local/lib,然后/sbin/ldconfig -v 5)Ganglia的安装:要注意的是,Ganglia在安装时默认不安装gmetad,所以需要在configure时指定:--with-gmetad,还需要指定RRDTool库的路径:--with-librrd=… !
  1. wget http://sourceforge.net/projects/ganglia/files/ganglia%20monitoring%20core/3.1.7/ganglia-3.1.7.tar.gz/download 
  2. tar -zxvf ganglia-3.1.7.tar.gz 
  3. cd ganglia-3.1.7 
  4. ./configure --with-gmetad --with-lirrd=/usr/local/lib --sysconfdir=/etc/ganglia 
  5. make 
  6. make install 
编译安装成功!几个重要文件的默认安装位置:/usr/bin/gstat/usr/bin/gmetric/usr/sbin/gmond/usr/sbin/gmetad/etc/ganglia/gmetad.conf
  • 1
  • 2
  • 3
  • 下一页
Hadoop主节点(NameNode)备份策略以及恢复方法CentOS 5遇到Partition table entries are not in disk order相关资讯      Nagios  Ganglia 
  • Linux下Nagios+PNP4Nagios的安装与  (今 08:25)
  • 开源监控软件Ganglia 安装使用  (08月27日)
  • RHEL 7.1 编译安装Ganglia 3.7.1  (12/13/2015 15:36:22)
  • Ganglia 调试技巧  (08月28日)
  • Nagios 监控 SNMP 温度计  (08月21日)
  • CentOS7安装Nagios并配置出图详解  (12/02/2015 19:36:58)
本文评论 查看全部评论 (0)
表情: 姓名: 字数

版权所有©石家庄振强科技有限公司2024 冀ICP备08103738号-5 网站地图