資源描述:
《Linux下cacti完整安裝指南》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在行業(yè)資料-天天文庫。
1、Linux下cacti完整安裝指南2009年8月12日vi發(fā)表評(píng)論閱讀評(píng)論初衷:網(wǎng)上的cacti教程不夠全面。vi看了多篇。郁悶了許久。才安裝成功。寫此文目的,為自己做個(gè)備忘,為后來者做為參考,共同進(jìn)步。如有誤,歡迎指導(dǎo)。環(huán)境:Centos5.3Cacti0.8.7emysql?5.1.36apache2.2.3php5.2.10net-snmp5.3.2.2一、安裝步驟:1.基本需求:?1).先必須安裝LAMP(參見另一篇博文)2)安裝libart_lgpl,libart_lgpl-devel2.依次安裝net-snmp,rrdtool,cacti1).[root@vi
2、~]#yum-yinstallnet-snmp*#如果php之前不支持snmp,必須安裝php-snmp編輯/etc/snmp/snmpd.conf編輯以下幾項(xiàng):查找#sec.namesourcecommunitycom2secnotConfiUserdefaultpublic改為com2secnotConfigUser127.0.0.1public查找1.####2.#Finally,grantthegroupread-onlyaccesstothesystemviewview.3.#groupcontextsec.modelsec.levelprefixreadwri
3、tenotif4.accessnotConfigGroup“”anynoauthexactsystemviewnonenone將”read”字段改為all.代碼:#accessnotConfigGroup“”anynoauthexactallnonenone查找##incl/exclsubtreemask#viewallincluded.180去掉view前面的#查找1.#??????name??????????incl/excl????subtree????????mask(optional)2.#view??systemview?????included???????
4、.13.view???systemview???included??.1.3.6.1.2.1.14.view???systemview???included??.1.3.6.1.2.1.25.1.1將下面兩個(gè)view前#去掉啟動(dòng)snmpd服務(wù):/etc/init.d/snmpdstart驗(yàn)證SNMP是否配置正確,可用以下命令:[root@vi~]#snmpwalk-v2c-cvivivi127.0.0.1if如果返回以下字段,既成功:1.IF-MIB::ifIndex.1=INTEGER:12.IF-MIB::ifIndex.2=INTEGER:23.IF-MIB::if
5、Index.3=INTEGER:34.IF-MIB::ifDescr.1=STRING:lo5.IF-MIB::ifDescr.2=STRING:eth06.IF-MIB::ifDescr.3=STRING:sit07.IF-MIB::ifType.1=INTEGER:softwareLoopback(24)8.IF-MIB::ifType.2=INTEGER:ethernetCsmacd(6)9.IF-MIB::ifType.3=INTEGER:tunnel(131)10.IF-MIB::ifMtu.1=INTEGER:164361.IF-MIB::ifMtu.2=IN
6、TEGER:15002.IF-MIB::ifMtu.3=INTEGER:14803.IF-MIB::ifSpeed.1=Gauge32:100000004.IF-MIB::ifSpeed.2=Gauge32:10000000005.IF-MIB::ifSpeed.3=Gauge32:06.IF-MIB::ifPhysAddress.1=STRING:7.IF-MIB::ifPhysAddress.2=STRING:0:c:29:4d:ea:478.IF-MIB::ifPhysAddress.3=STRING:9.IF-MIB::ifAdminStatus.1=INTEGE
7、R:up(1)10.IF-MIB::ifAdminStatus.2=INTEGER:up(1)11.IF-MIB::ifAdminStatus.3=INTEGER:down(2)12.IF-MIB::ifOperStatus.1=INTEGER:up(1)13.IF-MIB::ifOperStatus.2=INTEGER:up(1)14.IF-MIB::ifOperStatus.3=INTEGER:down(2)15.IF-MIB::ifLastChange.1=Timeticks:(0)0:00:00.0016.IF-MIB