Installing cacti steps
1. Prepare the lamp environment
2. Prepare the required package: RRDtool (Drawing) Cacti (installer) net-snmpd (data collection)
3, install the required library files RRDtool required library files are: Cairo libxm12 Pango
1. Install lamp Environment:
1 yum-y install httpd mysql-server php php-mysql mysql-devel2 chkconfig httpd on # setup Apache boot 3 chkconfig mysqld on # set MySQL boot up 45 Service httpd start # open HTTP service 6 service mysqld start # Turn on MySQL service
1 whether the test was successful 2 3 cd/var/www/HTML 4touch index.php 5vi index.php 6 7 <? PHP 8 phpinfo (); 9 ?> Save exit, test the effect in the browser
2. Installing RRDtool
1 yum install cairo-devel libxml2-devel pango-devel-y2 wget http://oss.oetiker.ch/ rrdtool/pub/rrdtool-1.4.8. tar.gz3 tar zxvf rrdtool-1.4.8. tar.gz4 CD rrdtool-1.4.85 ./configure--prefix=/usr/local/rrdtool
You need to install the GCC editor if the following occurs: Yum install gcc*-y
6 make;make Install
Ln-s/usr/local/rrdtool/bin/*/usr/local/bin/
3. Installing NET-SNMP
1wget http://downloads.sourceforge.net/net-snmp/net-snmp-5.6.1.1. tar.gz2Tar zxvf net-snmp-5.6.1.1. tar.gz3CD net-snmp-5.6.1.14./configure--prefix=/usr/local/net-SNMP5Make &&Make Install6CP./example.conf/etc/snmpd.conf7Ln-s/usr/local/net-snmp/bin/*/usr/local/bin/8Vi/etc/snmpd.conf#found 49 rows of "rocommunity public localhost" to remove the comment9/usr/local/net-snmp/sbin/snmpd-c/etc/snmpd.conf#Start SNMPTenEcho"/usr/local/net-snmp/sbin/snmpd-c/etc/snmpd.conf">>/etc/rc.local#Join boot Start
4. Installing cacti
1 wget http://www.cacti.net/downloads/cacti-0.8. 8b.tar.gz2 tar zxvf cacti-0.8. 8b.tar.gz3 mv./cacti-0.8.8b/*/var/www/html # Move all downloaded cacti package contents to the Web directory 4
4.1
Cacti Installation and component additions