{"rsdb":{"rid":"308973","subhead":"","postdate":"0","aid":"224135","fid":"115","uid":"1","topic":"1","content":"
\n\t\t\t\t\t\t\t\t
\n \t\t\t\t\t\n\t\t\t\t\t\t\t<\/use>\n\t\t\t\t\t<\/svg>\n \t\t\t\t\t\n\t\t\t\t\t\u7248\u6743\u58f0\u660e\uff1a\u672c\u6587\u4e3a\u535a\u4e3b\u539f\u521b\u6587\u7ae0\uff0c\u672a\u7ecf\u535a\u4e3b\u5141\u8bb8\u4e0d\u5f97\u8f6c\u8f7d\u3002\t\t\t\t\thttps:\/\/blog.csdn.net\/u011462328\/article\/details\/51461846\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t<\/path><\/svg>\n\t\t\t\t\t\t\t

1.\u5b89\u88c5\u4f9d\u8d56<\/h2>\n\n\n\n
yum -y<\/span> install httpd-devel<\/span> automake autoconf libtool ncurses-devel<\/span> libxslt groff pcre-devel<\/span> pkgconfig<\/code><\/pre>\n\n\n\n

2.\u5b89\u88c5ganglia-gmetad \u548c ganglia-web<\/h2>\n\n\n\n
yum search ganglia\nyum install -y<\/span> ganglia-gmetad<\/span>.<\/span>x86_64 ganglia-web<\/span>.<\/span>x86_64\nrpm -qa<\/span> |<\/span> grep ganglia<\/code><\/pre>\n\n\n\n

3.\u914d\u7f6egmetad<\/h2>\n\n

vi \/etc\/ganglia\/gmetad.conf<\/p>\n\n\n\n

data_source<\/span> \"\u96c6\u7fa4\u540d\u79f0\"<\/span> gmetad\u4e3b\u673a\u540d\u6216\u8005IP<\/code><\/pre>\n\n\n\n

4.\u4fee\u6539Apache\u914d\u7f6e<\/h2>\n\n

vi \/etc\/httpd\/conf.d\/ganglia.conf <\/p>\n\n\n\n

\u4fee\u6539Deny from<\/span> all \u4e3a allow from<\/span> all <\/code><\/pre>\n\n\n\n

5.\u5b89\u88c5\u542f\u52a8\u76d1\u63a7\u8282\u70b9\u7684\u540e\u53f0\u8fdb\u7a0bgmond<\/h2>\n\n\n\n
yum search ganglia\nyum install -y<\/span> ganglia-gmond<\/span>.<\/span>x86_64<\/code><\/pre>\n\n\n\n

6.\u914d\u7f6egmond<\/h2>\n\n

vi \/etc\/ganglia\/gmond.conf<\/p>\n\n\n\n

cluster {  \n  name<\/span> = \"hadoop cluster\"<\/span>------ cluster\u540d\u79f0,\u662f\u4f60\u5728gmetad.conf\u91cc\u914d\u7f6e\u7684data_source\u540d\u79f0  <\/span>\n  owner = \"unspecified\"<\/span>  \n  latlong = \"unspecified\"<\/span>  \n  url = \"unspecified\"<\/span>  \n}  \n\nudp_send_channel {  \n  #mcast_join = 239.2.11.71 ----- \u7ec4\u64ad  <\/span>\n  host = localhost -------------- \u5355\u64ad gmeta\u4e3b\u673a\u7684ip\/\u4e3b\u673a\u540dlboenMasterTest  <\/span>\n  port = 8649<\/span>  \n  ttl = 1<\/span>  \n}  \n\nudp_recv_channel {  \n  #mcast_join = 239.2.11.71  <\/span>\n  port = 8649<\/span>  \n  bind = localhost ------------- \u672c\u673a\u7684ip\/hostname  <\/span>\n}  <\/code><\/pre>\n\n\n\n

7.\u914d\u7f6e\u5f00\u673a\u81ea\u542f<\/h2>\n\n\n\n
chkconfig<\/span> -<\/span>-<\/span>add<\/span> gmetad<\/span>  \nchkconfig<\/span> -<\/span>-<\/span>add<\/span> gmond<\/span>  \nchkconfig<\/span> -<\/span>-<\/span>add<\/span> httpd<\/span> <\/code><\/pre>\n\n\n\n

8.\u5173\u95edselinux<\/h2>\n\n\n\n
\u6c38\u4e45\u4fee\u6539\uff08\u9700\u8981\u91cd\u542f\u673a\u5668\uff09\uff1avi \/etc\/selinux\/config\uff0c\u628aSELINUX<\/span>=enforcing\u6539\u6210SELINUX=disable\u3002\n\u4e34\u65f6\u4fee\u6539\uff08\u65e0\u9700\u91cd\u542f\u673a\u5668\uff09\uff1asetenforce 0\u3002<\/span><\/code><\/pre>\n\n\n\n

9.\u542f\u52a8<\/h2>\n\n\n\n
service gmetad start<\/span>\nservice gmond start<\/span>\nservice httpd start<\/span>\nservice gmetad status    -------------------\u9a8c\u8bc1\u662f\u5426\u542f\u52a8\u6210\u529f\nservice gmond status<\/span><\/code><\/pre>\n\n\n\n

10.web\u6d4b\u8bd5<\/h2>\n\n\n\n
http:\/\/gmetad\u4e3b\u673a\/ganglia<\/span><\/code><\/pre>\n\n\n\n

\u5176\u4ed6\u76f8\u5173\u6587\u7ae0\uff1a<\/h2>\n\n\n\n

1. nagios\u5b89\u88c5\u548c\u914d\u7f6e<\/a><\/h3>\n\n

2. ganglia\u4e0enagios\u7ec4\u5408\u4f7f\u7528<\/a><\/h3> <\/div>\n\t\t\t\t\t\t\n <\/div>","orderid":"0","title":"ganglia\u5b89\u88c5\u548c\u914d\u7f6e","smalltitle":"","mid":"0","fname":"Hdfs","special_id":"0","bak_id":"0","info":"0","hits":"601","pages":"1","comments":"0","posttime":"2019-05-15 00:20:36","list":"1557850836","username":"admin","author":"","copyfrom":"","copyfromurl":"","titlecolor":"","fonttype":"0","titleicon":"0","picurl":"https:\/\/www.cppentry.com\/upload_files\/","ispic":"0","yz":"1","yzer":"","yztime":"0","levels":"0","levelstime":"0","keywords":"ganglia<\/A> \u5b89\u88c5<\/A> \u914d\u7f6e<\/A>","jumpurl":"","iframeurl":"","style":"","template":"a:3:{s:4:\"foot\";s:0:\"\";s:8:\"bencandy\";s:0:\"\";s:4:\"head\";s:0:\"\";}","target":"0","ip":"47.106.78.186","lastfid":"0","money":"0","buyuser":"","passwd":"","allowdown":"","allowview":"","editer":"","edittime":"0","begintime":"0","endtime":"0","description":" \u7248\u6743\u58f0\u660e\uff1a\u672c\u6587\u4e3a\u535a\u4e3b\u539f\u521b\u6587\u7ae0\uff0c\u672a\u7ecf\u535a\u4e3b\u5141\u8bb8\u4e0d\u5f97\u8f6c\u8f7d\u3002https:\/\/blog.csdn.net\/u011462328\/article\/details\/51461846 1.\u5b89\u88c5\u4f9d\u8d56yum -y install httpd-devel automake autoconf libtool ncurses-devel libxs..","lastview":"1719085350","digg_num":"0","digg_time":"0","forbidcomment":"0","ifvote":"0","heart":"","htmlname":"","city_id":"0"},"page":"1"}