CentOS 5.5整合cacti+monitor+told+ntop部署

來源:互聯網
上載者:User

環境:

Centos5.5 IP:192.168.100.153 cacti

Centos5.5 IP:192.168.100.151 dns

需求:

部署cacti+monitor+told+ntop能正常監控部署

實施:

一、前期部署

1、 首先保證LAMP能正常的運行,我們使用源碼來安裝相關的安裝具體來看我們LAMP部署。當然也可以使用RPM或者yum安裝~

確保LAMP安裝正常或者yum安裝yum install -y php php-mysql php-snmp mysql mysql-server net-snmp net-snmp-libs net-snmp-utils php-pdo perl-DBD-MySQL紅色的不管是我們源碼安裝LAMP是RPM或者yum都需要安裝的;

2、 保證DNS能解析我們的cacti伺服器。添加A記錄;

二、部署cacti;

1、 安裝snmp;我們使用yum安裝,相對依賴的包比較多我們直接yum來安裝即可;用戶端也需要安裝net-snmp net-snmp-libs

Yum –y install net-snmp net-snmp-libs net-snmp-utils php-snmp

2、 安裝完成之後我們編輯snmp設定檔,並重啟服務。

Vim /etc/snmp/snmp.conf 修改三行

com2sec notConfigUser 192.168.100.153 public 修改成原生IP地址

access notConfigGroup "" any noauth exact all none none 修改成all

view all included .1 80 去掉前面的“#”號

service snmpd restart

3、 編譯安裝rrdtool檔案

解壓 tar zxf rrdtool-1.2.30.tar.gz

進入 rrdtool

./configure 後面不需要跟安裝目錄預設安裝即可

make && make install 編輯完成

如果編譯出錯

[root@localhost cacti+ntop+awstats]# tar zxvf cgilib-0.5.tar.gz

[root@localhost cgilib-0.5]# make

[root@localhost cgilib-0.5]# cp libcgi.a /usr/local/lib

[root@localhost cgilib-0.5]# cp cgi.h /usr/include/

[root@localhost cacti+ntop+awstats]# yum -y install libart_lgpl-devel pango-devel cairo-devel(如果不行使用)

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.