資源描述:
《centoscactiplugin安裝配置》由會員上傳分享,免費在線閱讀,更多相關內(nèi)容在應用文檔-天天文庫。
1、CentOS+Cacti+plugin安裝配置一、準備工作環(huán)境:Centos5.4x86_64所需軟件:httpPhpPhp-mysqlPhp-snmpMysqlPerl-DBD-MySQLPhp-pdorrdtoolNet-snmpNet-snmp-libsNet-snmp-utils#下載相關軟件[plain]viewplaincopyprint?1.cd?/usr/local/src/??2.wget?http://www.cacti.net/downloads/cacti-0.8.7e.tar
2、.gz??cd/usr/local/src/wgethttp://www.cacti.net/downloads/cacti-0.8.7e.tar.gz二、環(huán)境介紹主監(jiān)控機是Centos5.4x86_64主監(jiān)控機IP=10.0.0.52三、安裝配置(1)在主監(jiān)控機上安裝apache+php+gd的web環(huán)境,推薦編譯安裝,不再贅述,本處方便起見用yum裝了[plain]viewplaincopyprint?1.yum?install?php?php-mysql?php-snmp?mysql?mysql
3、-server?net-snmp?net-snmp-libs?net-snmp-utils?php-pdo?perl-DBD-MySQL??yuminstallphpphp-mysqlphp-snmpmysqlmysql-servernet-snmpnet-snmp-libsnet-snmp-utilsphp-pdoperl-DBD-MySQL(2)在主監(jiān)控機上安裝rrdtool,rrdtool依賴的包過多,所以選擇增加源,然后用yum安裝#增加源[plain]viewplaincopyprint?1
4、.vi?/etc/yum.repos.d/CentOS-Base.repo??vi/etc/yum.repos.d/CentOS-Base.repo#在文件末尾增加以下部分[plain]viewplaincopyprint?1.[dag]??2.name=Dag?RPM?Repository?for?Red?Hat?Enterprise?Linux??3.baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag??4.gpgcheck
5、=1??5.gpgkey=http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt??6.enabled=1??7.yum?install?rrdtool??[dag]name=DagRPMRepositoryforRedHatEnterpriseLinuxbaseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/daggpgcheck=1gpgkey=http://dag.wieers.c
6、om/rpm/packages/RPM-GPG-KEY.dag.txtenabled=1yuminstallrrdtool(3)配置snmp[plain]viewplaincopyprint?1.vi?/etc/snmp/snmp.conf??vi/etc/snmp/snmp.conf#將下邊這行中的default[plain]viewplaincopyprint?1.com2secnotConfigUser?default?public??com2secnotConfigUserdefaultpub
7、lic#改為127.0.0.1[plain]viewplaincopyprint?1.com2secnotConfigUser?127.0.0.1?public??com2secnotConfigUser127.0.0.1public#將下邊這行中的systemview[plain]viewplaincopyprint?1.access?notConfigGroup?""?any?noauth?exact?systemview?none?none??accessnotConfigGroup""anyn
8、oauthexactsystemviewnonenone#改為all[plain]viewplaincopyprint?1.access?notConfigGroup?""?any?noauth?exact?all?none?none??accessnotConfigGroup""anynoauthexactallnonenone#將下邊這行的注釋“#”號去掉[plain]viewplaincopyprint?1.#view?all?included?.