欧美一区二区三区老妇人-欧美做爰猛烈大尺度电-99久久夜色精品国产亚洲a-亚洲福利视频一区二区

ganglia的安裝與配置步驟

這篇文章主要介紹“ganglia的安裝與配置步驟”,在日常操作中,相信很多人在ganglia的安裝與配置步驟問題上存在疑惑,小編查閱了各式資料,整理出簡單好用的操作方法,希望對大家解答”ganglia的安裝與配置步驟”的疑惑有所幫助!接下來,請跟著小編一起來學(xué)習(xí)吧!

創(chuàng)新互聯(lián)公司主要從事網(wǎng)站建設(shè)、成都網(wǎng)站建設(shè)、網(wǎng)頁設(shè)計、企業(yè)做網(wǎng)站、公司建網(wǎng)站等業(yè)務(wù)。立足成都服務(wù)科爾沁,十年網(wǎng)站建設(shè)經(jīng)驗,價格優(yōu)惠、服務(wù)專業(yè),歡迎來電咨詢建站服務(wù):18982081108

給ceph安裝了一個ganglia監(jiān)控,過程如下。

1. 環(huán)境說明

ceph是在centos6.5上安裝的3臺物理機:mon0, osd1, osd2,所以在這三臺機器上都需要安裝gmond;在osd2上安裝gmetad。

2. 安裝過程

先安裝epel源:

rpm -ivh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

安裝依賴包:

yum install apr-devel expat-devel

在mon0和osd1安裝gmond:

yum install  ganglia ganglia-gmond httpd php apr apr-util

在osd2上安裝gmetad:

yum install  ganglia ganglia-gmetad ganglia-gmond ganglia-web httpd php apr apr-util

3. 配置

配置web:

mkdir -p /var/www/html/ganglia/   //創(chuàng)建網(wǎng)站主目錄下ganglia文件夾,用來訪問ganglia
cp -a /usr/share/ganglia/* /var/www/html/ganglia/   //拷貝ganglia網(wǎng)站代碼到該目錄
chkconfig gmond on
chkconfig gmetad on
chkconfig httpd on

默認 /var/lib/ganglia/rrds的屬主就是ganglia,不必像網(wǎng)上所說的改稱nobody。

在/var/www/html/ganglia/下的conf.php有可能無效,需要手動拷貝一份:

cp  /usr/share/ganglia/conf.php /var/www/html/ganglia

在centos6.5上還有可能遇到web訪問forbidden的情況,需要修改/etc/httpd/conf.d/ganglia.conf:

Alias /ganglia /usr/share/ganglia

  <Location /ganglia>
    Order deny,allow
    Deny from all
    Allow from all   //修改為all
    Allow from ::1
    # Allow from .example.com
  </Location>

配置/etc/ganglia/gmond.conf:

cluster {
  name = "ceph"   //cluster name
  owner = "unspecified"
  latlong = "unspecified"
  url = "unspecified"
}

/* The host section describes attributes of the host, like the location */
host {
  location = "unspecified"
}

/* Feel free to specify as many udp_send_channels as you like.  Gmond
   used to only support having a single channel */
udp_send_channel {
  host = 192.168.108.4   //gmetad ip
  port = 8649
}

/* You can specify as many udp_recv_channels as you like as well. */
udp_recv_channel {
  port = 8649
  bind = 192.168.108.3   //本機ip
  family = inet4
}

配置 /etc/ganglia/gmetad.conf,這里只需修改一行:

data_source "ceph" 192.168.108.4:8649 //gmetad ip

啟動各種服務(wù),然后在web輸入gmetad_ip/ganglia就可以看到監(jiān)控界面了。

以上是單播的配置,還有多播配置,可以自己查詢。

到此,關(guān)于“ganglia的安裝與配置步驟”的學(xué)習(xí)就結(jié)束了,希望能夠解決大家的疑惑。理論與實踐的搭配能更好的幫助大家學(xué)習(xí),快去試試吧!若想繼續(xù)學(xué)習(xí)更多相關(guān)知識,請繼續(xù)關(guān)注創(chuàng)新互聯(lián)網(wǎng)站,小編會繼續(xù)努力為大家?guī)砀鄬嵱玫奈恼拢?/p>

本文題目:ganglia的安裝與配置步驟
瀏覽地址:http://chinadenli.net/article34/giicse.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供建站公司、軟件開發(fā)、關(guān)鍵詞優(yōu)化、靜態(tài)網(wǎng)站網(wǎng)頁設(shè)計公司、手機網(wǎng)站建設(shè)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

商城網(wǎng)站建設(shè)