真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

rhel6-ganglia安裝配置

rhel6-ganglia安裝配置

創(chuàng)新互聯(lián)是一家集網(wǎng)站建設(shè),甘泉企業(yè)網(wǎng)站建設(shè),甘泉品牌網(wǎng)站建設(shè),網(wǎng)站定制,甘泉網(wǎng)站建設(shè)報(bào)價(jià),網(wǎng)絡(luò)營(yíng)銷,網(wǎng)絡(luò)優(yōu)化,甘泉網(wǎng)站推廣為一體的創(chuàng)新建站企業(yè),幫助傳統(tǒng)企業(yè)提升企業(yè)形象加強(qiáng)企業(yè)競(jìng)爭(zhēng)力??沙浞譂M足這一群體相比中小企業(yè)更為豐富、高端、多元的互聯(lián)網(wǎng)需求。同時(shí)我們時(shí)刻保持專業(yè)、時(shí)尚、前沿,時(shí)刻以成就客戶成長(zhǎng)自我,堅(jiān)持不斷學(xué)習(xí)、思考、沉淀、凈化自己,讓我們?yōu)楦嗟钠髽I(yè)打造出實(shí)用型網(wǎng)站。

軟件下載地址:http://yunpan.cn/QbFvIIsQhvdws


1.ganglia是分布式的監(jiān)控系統(tǒng),有兩個(gè)Daemon,分別是:客戶端GangliaMonitoring Daemon

(gmond)和服務(wù)端GangliaMeta Daemon (gmetad),還有GangliaPHP Web Frontend(基于

web的動(dòng)態(tài)訪問(wèn)方式)組成是一個(gè)Linux下圖形化監(jiān)控系統(tǒng)運(yùn)行性能的軟件,界面美觀、豐富,功能強(qiáng)大

而ganglia又依賴于一個(gè)web服務(wù)器用來(lái)顯示集群狀態(tài),用rrdtool來(lái)存儲(chǔ)數(shù)據(jù)和生成曲線圖,需要xml解析因此需要expat,配置文件解析需要libconfuse。安裝apche的httpd還需要支持php4以上,同時(shí)還有一些依賴軟件。

http://ganglia.sourceforge.net/軟件下載

2. 安裝

依賴包:

[root@desk32~]# yum -y install apr-devel apr-util check-devel cairo-develpango-devel libxml2-devel rpm-build glib2-devel dbus-develfreetype-devel fontconfig-devel gcc gcc-c++ expat-devel python-devellibXrender-devel

在解開ganglia-3.6.0.tar.gz后可以看見(jiàn)有一個(gè)ganglia.spec的文件證明是可以直接通過(guò)rpmbuild的方式編譯出rpm包的;

build需要的依賴包:

yum -yinstall libart_lgpl-devel pcre-devel libtool

[root@desk32~]# rpm -ivh libconfuse-devel-2.6-3.el6.x86_64.rpmlibconfuse-2.6-3.el6.x86_64.rpm

[root@desk32~]# yum localinstall rrdtool-devel-1.3.8-6.el6.x86_64.rpm

[root@desk32~]# rpmbuild -tb ganglia-3.6.0.tar.gz #-tb表示從tar包中build二進(jìn)制文件

[root@desk32~]# cd /root/rpmbuild/RPMS/x86_64/

[root@desk32x86_64]# ls

ganglia-devel-3.6.0-1.x86_64.rpm

ganglia-gmetad-3.6.0-1.x86_64.rpm

ganglia-gmond-3.6.0-1.x86_64.rpm

ganglia-gmond-modules-python-3.6.0-1.x86_64.rpm

libganglia-3.6.0-1.x86_64.rpm

[root@desk32x86_64]# rpm -ivh *

/etc/ganglia/主配置目錄

/var/lib/ganglia/rrdsrrds圖信息存儲(chǔ)目錄

[root@desk32ganglia]# vim gmond.conf

…................................

cluster{

name= "mycluster"

owner= "unspecified"

latlong = "unspecified"

url ="unspecified"

}

…................................

以下的內(nèi)容并不需要修改:

udp_send_channel {#udp包的發(fā)送通道

mcast_join = 239.2.11.71 #多播,工作在239.2.11.71通道下。如果使用單播模式,則要寫host= host1(接受數(shù)據(jù)的目標(biāo)主機(jī)),單播模式下也可以配置多個(gè)udp_send_channel

port = 8649#監(jiān)聽(tīng)端口

ttl = 1

}

udp_recv_channel { #接收udp包配置

mcast_join = 239.2.11.71 #同樣工作在239.2.11.71通道下,如果使用單播模式,則要寫host= localip,就是必須是本機(jī)的ip

port = 8649#監(jiān)聽(tīng)端口

bind = 239.2.11.71 #綁定

}

tcp_accept_channel {

port = 8649#通過(guò)tcp協(xié)議監(jiān)聽(tīng)的端口,遠(yuǎn)端可以通過(guò)鏈接8649端口得到監(jiān)控?cái)?shù)據(jù),gmetad就是通過(guò)該端口得到xml數(shù)據(jù)

}

[root@desk32ganglia]# /etc/init.d/gmetad start

StartingGANGLIA gmetad: [ OK ]

[root@desk32ganglia]# /etc/init.d/gmond start

StartingGANGLIA gmond: [ OK ]

tcp 0 0 0.0.0.0:8649 0.0.0.0:* LISTEN 23393/gmond

tcp 0 0 0.0.0.0:8651 0.0.0.0:* LISTEN 23376/gmetad

tcp 0 0 0.0.0.0:8652 0.0.0.0:* LISTEN 23376/gmetad

[root@desk32~]# tar zxf ganglia-web-3.5.2.tar.gz -C /var/www/html/

[root@desk32~]# cd /var/www/html/

[root@desk32html]# mv ganglia-web-3.5.2/ ganglia

[root@desk32ganglia]# yum -y install rsync

[root@desk32ganglia]# make install

/etc/init.d/gmetadrestart

/etc/init.d/gmondrestart

web訪問(wèn):

http://desk32/ganglia

rhel6-ganglia安裝配置

當(dāng)然ganglia所取到的數(shù)據(jù)只是desk32.example.com

現(xiàn)在在其他的主機(jī)上安裝gmond客戶端服務(wù),那么在服務(wù)端將可監(jiān)控同網(wǎng)中的所有客戶機(jī)。

客戶端軟件包:ganglia-gmond-3.6.0-1.x86_64.rpm

ganglia-gmond-modules-python-3.6.0-1.x86_64.rpm

libganglia-3.6.0-1.x86_64.rpm

libconfuse-2.6-3.el6.x86_64.rpm

libconfuse-devel-2.6-3.el6.x86_64.rpm

[root@desk32x86_64]# scp ganglia-gmond-* desk3:

[root@desk32x86_64]# scp ganglia-gmond-* server60

[root@desk32x86_64]# scp libganglia-3.6.0-1.x86_64.rpm desk3:

[root@desk32x86_64]# scp libganglia-3.6.0-1.x86_64.rpm server60:

[root@desk32~]# scp libconfuse-2.6-3.el6.x86_64.rpm libconfuse-devel-2.6-3.el6.x86_64.rpm desk3:

[root@desk32~]# scp libconfuse-2.6-3.el6.x86_64.rpm libconfuse-devel-2.6-3.el6.x86_64.rpm server60:

以下操作分別在客戶機(jī)desk3(192.168.122.3)與server60(192.168.122.160)上操作:

[root@desk3~]# rpm -ivh libconfuse-2.6-3.el6.x86_64.rpmlibconfuse-devel-2.6-3.el6.x86_64.rpm

[root@desk3~]# rpm -ivh libganglia-3.6.0-1.x86_64.rpm

[root@desk3~]# rpm -ivh ganglia-gmond-*

3.ganglia與nagios的整合;

關(guān)于nagios的配置參見(jiàn)博文rhel6-nagios安裝配置:

http://wangziyin.blog.51cto.com/6948950/1305465

[root@desk32contrib]# cp/root/rpmbuild/BUILD/ganglia-3.6.0/contrib/check_ganglia.py/usr/local/nagios/libexec/

[root@desk32contrib]# cd /usr/local/nagios/libexec/

[root@desk32libexec]# chmod a+x check_ganglia.py

[root@desk32libexec]# vim check_ganglia.py

配置nagios:

[root@desk32objects]# vim commands.cfg

###############check_ganglia#############################

definecommand{

command_name check_ganglia

command_line $USER1$/check_ganglia.py -h $HOSTNAME$ -m $ARG1$ -w$ARG

2$ -c$ARG3$

}

[root@desk32objects]# vim templates.cfg

defineservice{

use generic-service

name ganglia-service

hostgroup_name ganglia-servers

service_groups ganglia-metrics

}

[root@desk32objects]# vim service.cfg

defineservicegroup{

servicegroup_name ganglia-metrics

alias ganglia-metrics

membersserver60.example.com,根分區(qū),server60.example.com,系統(tǒng)負(fù)載,server60.example.com,內(nèi)存空閑

}

defineservice{

use ganglia-service

host_name server60.example.com

service_description 根分區(qū)

check_command check_ganglia!disk_free_percent_rootfs!20!10

}

defineservice{

use ganglia-service

host_name server60.example.com

service_description 系統(tǒng)負(fù)載

check_command check_ganglia!load_one!4!5

}

defineservice{

use ganglia-service

host_name server60.example.com

service_description 內(nèi)存空閑

check_command check_ganglia!mem_free!50000!30000

}

[root@desk32objects]# vim hosts.cfg

definehost{

use linux-server

host_name server60.example.com

alias ganglia client

address 192.168.122.160

}

definehostgroup{

hostgroup_name ganglia-servers

alias ganglia-servers

members desk32.example.com

}

[root@desk32objects]# /usr/local/nagios/bin/nagios -v/usr/local/nagios/etc/nagios.cfg

[root@desk32objects]# /etc/init.d/nagios restart

附件:http://down.51cto.com/data/2363582

網(wǎng)站標(biāo)題:rhel6-ganglia安裝配置
轉(zhuǎn)載來(lái)于:http://weahome.cn/article/pcgjpi.html

其他資訊

在線咨詢

微信咨詢

電話咨詢

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部