centos下ganglia叢集中gmond的安裝與配置(2)

來源:互聯網
上載者:User

準備工作見上一篇文章《CentOS下ganglia之gmond的安裝與配置》

ganglia的安裝包還是用上一篇文章提到的ganglia-3.4.0
#cd ganglia-3.4.0
#./configure –prefix=/opt/modules/ganglia –with-static-modules –enable-gexec –enable-status –with-gmetad –with-python=/usr –with-librrd=/usr/local/rrdtool –with-libexpat=/usr –with-libconfuse=/usr/local –with-libpcre=/usr/local
#make && make install
#cd gmetad
#cp gmetad.conf /opt/modules/ganglia/etc/
#cp gmetad.init /etc/init.d/gmetad

開啟gmetad的設定檔,修改如下內容:
#vi /etc/init.d/gmetad

將GMETAD=/usr/bin/gmetad
改為GMETAD=/opt/modules/ganglia/sbin/gmetad
#chkconfig –add gmetad
建立rrds的目錄並設定許可權
#mkdir -p /var/lib/ganglia/rrds
#chown nobody:nobody /var/lib/ganglia/
配置gmetad
#vi /opt/modules/ganglia/etc/gmetad.conf
加入以下內容:
data_source "zsx" localhost:8649 xxx.xxx.xxx.xxx:8649
setuid_username "root"
rrd_rootdir "/usr/local/rrdtool"
註:data_source可以設定一個或多個,如果設定多個,cluster資訊會備份到多個主機上

啟動gmetad
#service gmetad start
檢查gmetad是否正常啟動
#netstat -tnlp |grep gmetad
如果正常的話,會有兩個gmetad,分別佔用8651和8652連接埠

 

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.