Chinaunix首页 | 论坛 | 博客
  • 博客访问: 113009
  • 博文数量: 19
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 453
  • 用 户 组: 普通用户
  • 注册时间: 2014-01-03 15:53
个人简介

好好学习 天天向上!

文章分类

全部博文(19)

文章存档

2014年(19)

我的朋友

分类: 系统运维

2014-06-09 12:35:16

环境:
LAMP环境已搭建,可正常提供访问,如图:

配置监控端Server:
安装RRDtool

[root@cacti ~]#yum -y install cairo-devel libxml2-devel pango-devel  perl-devel perl-CPAN

[root@cacti ~]# tar zxvf rrdtool-1.4.5.tar.gz
[root@cacti ~]# cd rrdtool-1.4.5
[root@cacti rrdtool-1.4.5]# ./configure --prefix=/usr/local/rrdtool
[root@cacti rrdtool-1.4.5]# make && make install
[root@cacti rrdtool-1.4.5]# ln -s /usr/local/rrdtool/bin/* /usr/local/bin/

安装net-snmp

[root@cacti]# yum install net-snmp net-snmp-devel net-snmp-libs net-snmp-utils

 

Vi /etc/snmp/snmpd.conf

#41  com2sec notConfigUser   127.0.0.1      public

#62  access  notConfigGroup ""      any       noauth    exact  all  none none

#85  view all    included  .1    


[root@cacti ~]# chkconfig –level 35 snmpd on

[root@cacti ~]# service snmpd start


配置Cacti

[root@cacti ~]#useradd cacti

[root@cacti ~]#echo “123456” | passwd --stdin cacti

[root@cacti ~]# tar zxvf cacti-0.8.8b.tar.gz

[root@cacti ~]# mv cacti-0.8.8b  /usr/local/apache/htdocs/cacti

[root@cacti cacti]# chown cacti:cacti log -R

[root@cacti cacti]# chown cacti:cacti rra –R


[root@cacti ~]#mysql -uroot  -p

mysql> create database cacti;        

mysql> insert into mysql.user(host,user,password) values ('localhost','cacti',password('123456'));

mysql>flush privileges;

mysql> grant all on cacti.* to cacti@'localhost' identified by '123456';


[root@cacti cacti]# mysql -ucacti -p123456 cacti < cacti.sql       \\导入数据库
报错:


原因:数据库版本兼容性问题

解决方法:

vi /usr/local/apache/htdocs/cacti/cacti.sql



[root@cacti cacti]# mysql -ucacti -p123456 cacti < cacti.sql    \\在此导入


编辑vi /usr/local/apache/htdocs/cacti/include/config.php


编辑global.php文件,添加如下内容:

[root@cacti]# vi /usr/local/apache/htdocs/cacti/include/global.php


PSCacti安装完毕默认显示美国时刻



访问:














至此Cacti检测服务器已搭建完毕!!!



阅读(3292) | 评论(0) | 转发(1) |
1

上一篇:Tomcat搭建实例

下一篇:没有了

给主人留下些什么吧!~~