心有多大舞臺便有多大

          Embrace changes, pursue excellence, share niceness.

          在linux redhat中安裝cacti監(jiān)控工具

          0.安裝準(zhǔn)備
             確認(rèn)已經(jīng)安裝好apache,mysql,php,redhat中已安裝了如下rpm包:zlib,libpng,freetype,libart_lgpl,
          1.下載軟件包
              cacti:    http://www.cacti.net/downloads/cacti-0.8.7b.tar.gz
              rrdtool:   http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.2.14.tar.gz

          2.安裝數(shù)據(jù)庫
             在mysql里創(chuàng)建一個用戶cactiuser,新建一個schema名為cacti,然后給用戶cactiuser授權(quán)從localhost訪問cacti
             在mysql console里執(zhí)行source /usr/local/cacti/cacti.sql,創(chuàng)建cacti需要的表

          3.安裝rrdtool
             我是從源代碼安裝的,./configure --prefix=/usr/local/rrdtool/ --disable-python --disable-tcl && make && make install
           如果不加上--disable-python --disable-tcl ,編譯會有錯誤的,應(yīng)該是對linux上安裝的tcl有版本要求吧,反正我不需要,先這樣過去吧

          4.安裝snmp
             直接從redhat的安裝盤中安裝net-snmp-perl-5.0.9-2.30E.6.i386.rpm,net-snmp-utils-5.0.9-2.30E.6.i386.rpm這兩個rpm包,這樣在/usr/bin目錄下就有了snmpwalk,snmpget,snmpbulkwalk等幾個cacti需要的文件

          5.安裝cacti
             在瀏覽器里訪問http://localhost/cacti/install/index.php
             確認(rèn)snmp及rddtool,php的路徑

          6.修改snmp.conf配置
              com2sec notConfigUser default public  \\將default改為安裝cacti服務(wù)的機(jī)器ip,public是snmp默認(rèn)的Community,可以改成自己設(shè)定的團(tuán)體名稱
              access notConfigGroup "" any noauth exact systemview none none  \\將systemview改成all
              #view all included .1 80  \\去掉注釋符
              重啟snmpd服務(wù):service snmpd restart

          7.修改crotab
          #crontab -u cactiuser -e

          */5 * * * * /usr/local/bin/php /usr/apache/htdocs/cacti/poller.php > /dev/null 2>&1

          ok,安裝結(jié)束.

          posted on 2008-02-21 14:52 pony 閱讀(939) 評論(0)  編輯  收藏


          只有注冊用戶登錄后才能發(fā)表評論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 焦作市| 浙江省| 香港| 靖远县| 雷波县| 鸡西市| 伊宁市| 南丰县| 疏附县| 阜康市| 集安市| 永新县| 长宁县| 上思县| 黄浦区| 阜平县| 郓城县| 县级市| 蓝田县| 马山县| 延寿县| 永靖县| 班玛县| 拉萨市| 南乐县| 秦皇岛市| 渭南市| 开封县| 志丹县| 阿鲁科尔沁旗| 孟津县| 南部县| 三都| 泗阳县| 巴东县| 岑溪市| 特克斯县| 江源县| 阿拉善盟| 石城县| 遂川县|