How to quickly install cacti

  
 

System environment: centos5.5

All software is installed with yum

1. Install Nginx platform

Please check when compiling PHP
There is no --enable-sock parameter.

After installation:



cd /usr/binln -s /usr/local/php/bin/php php




2, install rrd and snmp related things

You must first add yum source, otherwise Yum is less than we want Something



vi /etc/yum.repos.d/CentOS-Base.repo



Then yum what we want



yum -y install php-snmp net-snmp net-snmp-libs net-snmp-utils rrdtool< Br>




3. Configure snmpd, both the monitor and the monitored machine must be configured. PS: Installed with the new version of the source package, his configuration file is not the same, you can use the old yum configuration file of our yum.

Original configuration:




com2secnotConfigUser default publicaccess notConfigGroup "" any noauth exact systemview none none#view all Included .1 80


Modified as:



com2secnotConfigUser 127.0.0.1 public #127.0.0.1 for cacti host Configure access notConfigGroup "" any noauth exact all none noneview all included .1 80



Starting services:



service snmpd start




4, install cacti



tar zxvf cacti-0.8.7g.tar.gzmv cacti-0.8.7g /home/www/cacti



Create a database and import it Cacti sql, and authorized cacti users



mysql -uroot -p123456 -e "create database cacti;"mysql -uroot -p123456 -e " GRANT ALL PRIVILEGES ON cacti.* TO 'cacti'@'127.0.0.1' IDENTIFIED BY 'cacti';"mysql -uroot -p123456 cacti < /home/www/cacti/cacti.sql

< Br>


Configure cacti database connection



vi /home/www/cacti/include/config.php



5, Configuring Nginx



vi /usr/local/nginx/conf/nginx.conf



6, Browser Run

Open www.lihp.com with your browser and you will see the installation guide for cacti. Once set, it will not appear again. Click “Next” select “New Install", click “Next” specify the binary file path of the rrdtool, php, snmp tools, make sure all paths are displayed <; FOUND”, no <;NOT FOUND”, click Finish Finish the installation. Cacti's default username and password is admin, enter the username and password, click login for security reasons, after the first login is successful, cacti will force you to change a new password, enter a new password and confirm the password, click save , enter the cacti console interface; click graphs to view cacti monitor the chart of the machine;

7, add scheduled tasks



*/5 * * * * /usr/local/php/bin/php /home/www/cacti/poller.php > /dev/null 2>&1



Catch data once in the fifth minute

Copyright © Windows knowledge All Rights Reserved