免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1559 | 回复: 0
打印 上一主题 下一主题

快速部署cacti,来监控你的网络和主机!!centos4.2+rrdtool+cacti [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-12-20 15:31 |只看该作者 |倒序浏览
大家可能都在使用mrtg+rrdtool来绘图监控机器,前几日,拜读了一下abel的rrdtool教学,研习一下,感觉rrdtool非常不错。闲话不多说。大家来简化安装.
wget http://people.ee.ethz.ch/~oetike ... dtool-1.0.50.tar.gz // 注意版本问题。最好使用1.0.*。否则安装太麻烦。
使用yum安装相关的软件
yum -y -t install httpd mysql-server php*.* net-snmp

设置mysql:

#mysql -u root -p
输入密码
>create database cactidb;
>grant all on cactidb.* to root;
>grant all on cactidb.* to root@localhost;
>grant all on cactidb.* to cactiuser;
>grant all on cactidb.* to cactiuser@localhost;
>set password for cactiuser@localhost=password('cactipw');
> exit

修改vi /etc/httpd/conf/httpd/conf
添加下面
###############for php and cacti##################
AddType application/x-tar .tgz
AddType application/x-httpd-php .php
AddType image/x-icon .ico
DirectoryIndex index.php index.html index.html.var
#######################over##################
启动服务:
chkconfig httpd on
chkconfig mysqld on
chkconfig snmpd on

service httpd start
service mysqld start
service snmpd start

下载cacti   http://www.cacti.net/downloads/cacti-0.8.6g.tar.gz
解开后倒入数据库:mysql –u root –p cactidb < cacti.sql
增加用户cactiuser  #useradd cactiuser -g users
#chown –R cactiuser rra/ log/

另外注意修改config.php 文件。数据库名字和密码与设置的一致。
为用户增加Crontab
crontab –u cactiuser –e
*/5 * * * * /usr/bin/php /var/www/html/cacti/poller.php

ok.剩下的工作就是要你去设置cacti了。
如果快速的话,相信你一个小时就搞定。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP