I useCactiAfter a long time, the results are good. Give new users some knowledge about what to do before cacti basic monitoring!
1. Install the lamp EnvironmentFor details, see the LAMP installation configuration in/etc/php5/apache2/php. iniubuntu.
- http://hi.baidu.com/52safe/blog/item/2c6bf1ce1e0d401c00e928fd.html
-
- #apt-get install mysql-server apache2 php5 php5-mysql php5-mysql php5-gd libapache2-mod-auth-mysql libapache2-mod-php5 -y
-
2. Install the snmp protocol
- #apt-get install php5-snmp php-pear snmp snmpd -y
-
3. Install rrdtool graphics rendering software
- #apt-get install rrdtool
-
4. Create a mysql user for cacti
- #myql -uroot -padmin
-
- mysql> GRANT ALTER,SELECT,INSERT,UPDATE,DELETE,CREATE,DROP
-
- -> ON cacti.*
-
- -> TO 'cacti'@'localhost'
-
- -> IDENTIFIED BY 'cacti';
-
5. Unzip and install cacti[Wget http://www.cacti.net/downloads/cacti-0.8.7g.tar.gz]
- #tar xvf cacti-0.8.7g.tar.gz
-
- #mv cacti-0.8.7g /var/www/cacti
-
- #mysql -uroot -padmin cacti < /var/www/cacti/cacti.sql
-
6. Add a scheduled task:
- */5 * * * * php /var/www/cacti/poller.php > /dev/null 2>&1
Through the above six steps, we know what to do before cacti basic monitoring! I hope this article will be useful to you!