cacti流量检测.doc_第1页
cacti流量检测.doc_第2页
cacti流量检测.doc_第3页
cacti流量检测.doc_第4页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

Cacti系统流量监测一 部署cacti 进入cacti目录,执行以下命令 rootlocalhost cacti# yum -y -nogqgcheck localinstall cacti-0.8.7d-1.el5.rf.noarch.rpm rrdtool-1.2.27-3.el5.i386.rpm rrdtool-php-1.2.27-3.el5.i386.rpm rootlocalhost cacti# rpm2cpio cacti-0.8.7d-1.el5.rf.noarch.rpm | (cd / ; cpio -dvim)二 修改/etc/httpd/conf.d/cacti.conf 的访问规则 rootlocalhost # vim /etc/httpd/conf.d/cacti.confAlias /cacti/ /var/www/cacti/ DirectoryIndex index.php Options -Indexes AllowOverride all order deny,allow #deny from all allow from all allow from AddType application/x-httpd-php .php php_flag magic_quotes_gpc on php_flag track_vars on三 修改数据库设置并导入cacti.SqlMysql create database cacti;Mysql grant all privileges on cacti.* to cactiuserlocalhost identifiled by cactiuser;Mysql flush privileges;Mysql quit四 导入数据库 rootlocalhost # vim /var/www/cacti/include/config.php$database_type = mysql;$database_default = cacti;$database_hostname = ;$database_username = cactiuser;$database_password = cactiuser;$database_port = 3306;rootlocalhost # vim /var/www/cacti/include/global.php$database_type = mysql;$database_default = cacti;$database_hostname = ;$database_username = cactiuser;$database_password = cactiuser;$database_port = 3306;导入rootlocalhost # mysql -ucacatiuser -pcactiuser -h localhost cacti/dev/null六 配置安装snmprootlocalhost # rpm -qa *snmp*net-snmp-utils--9.el5nagios-plugins-snmp-1.4.13-11.el5net-snmp--9.el5php-snmp-5.1.6-27.el5net-snmp-libs--9.el5 # 已经安装修改配置文件,为以下内容rootlocalhost # vim /etc/snmp/snmpd.confsyslocation beijing-KGBsyscontact Network Operation System rocommunity publicrwcommunity privaterootlocalhost # /etc/init.d/snmpd restart #启动snmp停止 snmpd: 确定启动 snmpd: 确定rootlocalhost # snmpwalk -help | moreUSAGE: snmpwalk OPTIONS AGENT OID Version: Web: / Email: 七 启动服务rootlocalhost # /etc/init.d/httpd restartrootlocalhost # /etc/init.d/mysqld restart停止 MySQL: 确定启动 MySQL: 确定rootlocalhost # cp cacti/cacti-0.8.7e/lib/graph_variables.php /var/www/cacti/lib/cp:是否覆盖“/var/www/cacti/lib/graph_variables.php”? yrootlocalhost # chown -R apache.apache /var/www/cacti/rootlocalhost # cat /etc/cron.dcron.d/ cron.daily/ cron.denyrootlocalhost # cat /etc/cron.d/cacti*/5 * * * * cacti php /var/www/cacti/poller.php &/dev/null八 配置cacti 在浏览器中输入:25/cacti第一次进入需要更改密码点击 “devices”-“add”配置完成后点击“create”按钮,进入后点击“create graphs for this host”在graph templates和dataquery SNMP-ineterface statistics 勾选所有的空白框将select a graph type种选择”in/out bits (64-bit counters)”-“create”.重新点击devices 找到刚刚添加的description -enable-place on a tree。重启httpd服务-rootlocalhost #

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论