Use apt-get to make sure you have all that is required. A number of packages will get added through dependencies.
apt-get install libpango1.0-dev libxml2-dev
OPTIMISTIC BUILD
Before you start to build RRDtool, you have to decide two things:
- In which directory you want to build the software.
- Where you want to install the software.
Once you have decided. Save the two locations into environment variables.
BUILD_DIR=/tmp/rrdbuild INSTALL_DIR=/opt/rrdtool-1.4.3If your /tmp is mounted with the option noexec (RHEL seems todo that) you have to choose a different directory!
Now make sure the BUILD_DIR exists and go there:
mkdir -p $BUILD_DIR cd $BUILD_DIRLets first assume you already have all the necessary libraries pre-installed.
wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.4.3.tar.gz gunzip -c rrdtool-1.4.3.tar.gz | tar xf - cd rrdtool-1.4.3 ./configure --prefix=$INSTALL_DIR && make && make installOk, this was very optimistic. This try will probably have ended with configure complaining about several missing libraries.
展示节点
安装ganglia包rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm (32位系统)
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm (64位系统)
yum -y install ganglia-gmetad ganglia-gmond ganglia-web
配置gmetad (/etc/gmetad.conf)
data_source "Bee Points" 10.210.67.42:8649
配置gmond (/etc/gmond.conf)
cluster {
name = "Bee Points"
owner = "unspecified"
latlong = "unspecified"
url = "unspecified"
}
udp_send_channel {
host = 10.210.67.42
port = 8649
}
udp_recv_channel {
port = 8649
family = inet4
}
启动
/etc/init.d/gmetad start
/etc/init.d/gmond start
设置自启动
chkconfig gmetad on
chkconfig gmond on
设置 Apache (配置好PHP)
DocumentRoot "/usr/share/ganglia"
<Directory "/usr/share/ganglia">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
监控节点
安装ganglia
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm (32位系统)
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm (64位系统)
yum -y install ganglia-gmond
配置gmond (/etc/gmond.conf)
cluster {
name = "Bee Points"
owner = "unspecified"
latlong = "unspecified"
url = "unspecified"
}
udp_send_channel {
host = 10.210.77.15
port = 8649
}
udp_recv_channel {
port = 8649
family = inet4
}
启动gmond
/etc/init.d/gmond start
设置自启动
chkconfig gmond on
移除epel源
yum -y remove epel-release
补充:针对hadoop集群不能连接外网采用rpm安装 rpm包
rsync 10.79.48.58::gmo/ganglia-3.0.7-1.el5.x86_64.rpm ./
rsync 10.79.48.58::gmo/ganglia-gmond-3.0.7-1.el5.x86_64.rpm ./
安装
rpm -ivh ganglia-3.0.7-1.el5.x86_64.rpm
rpm -ivh ganglia-gmond-3.0.7-1.el5.x86_64.rpm
修改配置文件
vim /etc/gmond.com
启动及设置自启动
/etc/init.d/gmond start
chkconfig gmond on