很早以前就装过rrdtool,可惜那个时候没有写文档,今天又要重来.记得那个时候是异常的曲折,不过今天是很顺利.
1.首先到官方下载最新的cacti,这次发现这个版本有很多细节上改进.佩服啊,人家这个版本更新几年了,一直是0.8.7x系列.如果是某些软件早就是8.7了.
wget http://www.cacti.net/downloads/cacti-0.8.7e.tar.gz
然后解压后,就不多话了.用自己的方法放到web目录一个你可以通过浏览器访问的地方.
2.创建一个mysql database cacti
导入数据:
mysql cacti < cacti.sql
3.修改配置文件:
vi include/config.php
到了这一步后,在浏览器里输入: http://xxx.xxx.xxx.xxx/cacti/install/
提示如下图:
提示我有很多东西没有装,当然这个截图是后截图的,所以有很多已经显示装上了.
4.然后就是net-snmp
yum install net-snmp* -y
5,安装rrdtool
wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.2.26.tar.gz
由于目前只在网上找到1.2.6系列可以修改文件支持中文,所以这里就用1.2.6了,最新的1.4.X系列了,我试了一下可以用,但没有研究如何让它支持中文.
修改: src/rrd_graph.c
#ifdef HAVE_SETLOCALE
// setlocale(LC_TIME,”");
#ifdef HAVE_MBSTOWCS
// setlocale(LC_CTYPE,”");
注释掉setlocale(LC_TIME,”");setlocale(LC_CTYPE,”");增加:setlocale(LC_CTYPE,”");
如我这样,注意C里面的#不是注释了,所以用//,在这个问题上犯了错了.
然后就是./configure;make;make install
6,然后再去刷新刚才这个配置页面,提示所有需要的东西已经配置好了.
然后进入设置,把一个windows字体拷到服务器上
在setting里把相关字体配置上.(重要,必须的,否则无法支持中文,一开始我也在这里犯错了.)
7.然后就大功告成了.
接下来是对服务器的连接数进行监控,其实snmp默认就可以支持了.
下载以下模板,导入到你的cacti里就可以了.
cacti_graph_template_snmp_connections


survival in the wilderness
October 24, 2011 at 4:57 pm
Online Article……
[...]The information mentioned in the article are some of the best available [...]……
facebook chips
October 24, 2011 at 6:07 pm
Visitor recommendations…
[...]one of our visitors recently recommended the following website[...]……
Zucchini Bread Recipes
October 29, 2011 at 3:24 am
Related……
[...]just beneath, are numerous totally not related sites to ours, however, they are surely worth going over[...]……
top 10 preworkout supplements
November 20, 2011 at 8:40 am
Awesome website…
[...]the time to read or visit the content or sites we have linked to below the[...]……
Rick Gottilla
December 14, 2011 at 9:20 pm
Gems form the internet…
[...]very few websites that happen to be detailed below, from our point of view are undoubtedly well worth checking out[...]……
ray ban
December 16, 2011 at 7:39 am
Recommeneded websites…
[...]Here are some of the sites we recommend for our visitors[...]……
Jack3d
December 16, 2011 at 4:44 pm
Recommeneded websites…
[...]Here are some of the sites we recommend for our visitors[...]……
AMG Services Scott Tucker
December 16, 2011 at 7:09 pm
Online Article……
[...]The information mentioned in the article are some of the best available [...]……
AMG Services
December 16, 2011 at 8:02 pm
Websites worth visiting…
[...]here are some links to sites that we link to because we think they are worth visiting[...]……
Fast Impetigo Cure Review
December 17, 2011 at 9:29 am
Check this out…
[...] that is the end of this article. Here you’ll find some sites that we think you’ll appreciate, just click the links over[...]……
Health
December 17, 2011 at 10:08 am
Visitor recommendations…
[...]one of our visitors recently recommended the following website[...]……
ribbon Zebra ZXP Series 3
December 18, 2011 at 12:06 am
Online Article……
[...]The information mentioned in the article are some of the best available [...]……
Phoenix auto glass replacement
December 18, 2011 at 3:33 am
Blogs ou should be reading…
[...]Here is a Great Blog You Might Find Interesting that we Encourage You[...]……
21st Birthday Dresses
December 18, 2011 at 4:24 am
Links…
[...]Sites of interest we have a link to[...]……
new mission impossible movie online watch
December 18, 2011 at 8:00 pm
Recent Blogroll Additions……
[...]usually posts some very interesting stuff like this. If you’re new to this site[...]……