aquaballoon

CACTI Install

May 24th, 2012
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.06 KB | None | 0 0
  1. #http://openmaniak.com/cacti_tutorial.php
  2.  
  3.  
  4. ***INSTALL CACTI WITH APT-GET
  5.  
  6. apt-get install cacti
  7.  
  8. dpkg-reconfigure cacti
  9.  
  10. ***MANUAL INSTALL OF CACTI
  11. #Download Catci at http://www.cacti.net
  12. #uncompress the tar.gz file
  13.  
  14. tar -xvf cacti-0.8.6h.tar.gz
  15. mv /home/po/Desktop/cacti /var/www/
  16.  
  17. mysqladmin -u root -p create cacti
  18. mysql -u root -p cacti < /var/www/cacti/sql/cacti.sql
  19.  
  20. mysql -u root -p cacti
  21. mysql> grant all on cacti.* to cactiuser@localhost identified by 'cactiuser';
  22.  
  23. mysql>flush privileges;
  24. mysql>exit
  25.  
  26. nano /var/www/cacti/include/config.php
  27. $database_type = "mysql";
  28. $database_default = "cacti";
  29. $database_hostname = "localhost";
  30. $database_username = "cactiuser";
  31. $database_password = "cactiuser";
  32. $database_port = "3306";
  33.  
  34. useradd cacti -d /var/www/cacti/ -s /bin/false
  35.  
  36. chown -R cacti /var/www/cacti/
  37.  
  38. #Run the php script every 5 minutes
  39. crontab -e -u cacti
  40. */5 * * * * php5 /var/www/cacti/poller.php > /dev/null 2>&1
  41.  
  42. /etc/init.d/apache2 restart
  43.  
  44. http://your_ip_address/cacti
  45. #Use "admin" as the default login and password.
Advertisement
Add Comment
Please, Sign In to add comment