I. installation environment: System version: Centos5.364 bits here are cacti: license I. installation environment: System version: Centos 5.3 64 bits here are cacti: license here the LAMP environment is deployed:
Here is how to install LAMP in yum in 5 minutes:
Yum install httpd mysql-server php-mysql-y
1. install the corresponding lib library before installing rrdtool:
yum install cairo-devel libxml2-devel pango pango-devel ?y
tar xzf rrdtool-1.4.5.tar.tar
cd rrdtool-1.4.5
./configure --prefix=/usr/local/rrdtool/
make
make install
ln -s /usr/local/rrdtool/bin/* /usr/local/bin/
2. install SNMP:
tar xzf net-snmp-5.4.3.tar.gz
cd net-snmp-5.4.3
./configure --prefix=/usr/local/net-snmp/
make
make install
ln -s /usr/local/net-snmp/bin/* /usr/local/bin/
cp EXAMPLE.conf /usr/local/net-snmp/share/snmp/snmpd.conf
/usr/local/net-snmp/sbin/snmpd -c /usr/local/net-snmp/share/snmp/snmpd.conf
echo “/usr/local/net-snmp/sbin/snmpd -c /usr/local/net-snmp/share/snmp/snmpd.conf” >>/etc/rc.local
Here I actually use yum install net-snmp? Y. 3. install cacti
Tar xzf cacti-0.8.7g.tar.gz & cp cacti-0.8.7g/usr/local/apache2/htdocs/cacti
Next, create a cacti database and configure it as follows:
Mysql-uroot? P enter your password to enter the database and then create the database:
Create database cacti; create a database
Grant all on cacti. * to cactiuser @ 'localhost' identified by '000000'; create a user and authorize
Flush privileges; refresh permission
4. After configuring mysql, import the cacti data to the cacti database:
Mysql-ucactiuser-p cacti
Enter cacituser's password 123456.
5. add the following to crontab: */1 *****/usr/bin/php/var/www/html/cacti/poller. php 3. after the above configuration is complete, we can directly install it. Access http: // server ip/cacti/install/index directly. php. If an error is reported, the problem is solved: It is not safe to rely on the system's timezone settings php.