Cacti basic monitoring

Source: Internet
Author: User
Tags rrdtool

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.

 
 
  1. http://hi.baidu.com/52safe/blog/item/2c6bf1ce1e0d401c00e928fd.html  
  2.  
  3. #apt-get install mysql-server apache2 php5 php5-mysql php5-mysql php5-gd libapache2-mod-auth-mysql libapache2-mod-php5 -y  
  4.  

2. Install the snmp protocol

 
 
  1. #apt-get install php5-snmp php-pear snmp snmpd -y  
  2.  

3. Install rrdtool graphics rendering software

 
 
  1. #apt-get install rrdtool  
  2.  

4. Create a mysql user for cacti

 
 
  1. #myql -uroot -padmin  
  2.  
  3. mysql> GRANT ALTER,SELECT,INSERT,UPDATE,DELETE,CREATE,DROP  
  4.  
  5. -> ON cacti.*  
  6.  
  7. -> TO 'cacti'@'localhost' 
  8.  
  9. -> IDENTIFIED BY 'cacti';  
  10.  

5. Unzip and install cacti[Wget http://www.cacti.net/downloads/cacti-0.8.7g.tar.gz]

 
 
  1. #tar xvf cacti-0.8.7g.tar.gz  
  2.  
  3. #mv cacti-0.8.7g /var/www/cacti  
  4.  
  5. #mysql -uroot -padmin cacti < /var/www/cacti/cacti.sql  
  6.  

6. Add a scheduled task:

 
 
  1. */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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.