Installing new cacti server

From Notes_Wiki

Home > CentOS > CentOS 6.x > Monitoring tools > Cacti > Installing new cacti server

To setup new cacti server following steps can be used:

  1. yum -y install mysql-server mysql php-mysql php-pear php-common php-gd php-devel php php-mbstring php-cli php-snmp php-pear-Net-SMTP php-mysql httpd net-snmp-utils php-snmp net-snmp-libs cacti
  2. service mysqld start
  3. mysqldadmin create cacti
  4. /usr/bin/mysql_secure_installation
  5. 'mysql -u root -p' and use:
    GRANT ALL ON cacti.* TO cacti@localhost IDENTIFIED BY '<secret>';
    flush privileges;
    quit
  6. Configure SNMP as explained at SNMP server configuration for Linux hosts
  7. mysql -u cacti -p cactu < $(rpm -ql cacti | grep cacti.sql)
  8. Edit '/etc/cacti/db.php' and put proper value for database password, database name, etc.
  9. Edit '/etc/httpd/conf.d/cacti.conf' and set
    Order Deny,Allow
    Deny from all
    Allow from 10.0.0.0/8
  10. service httpd restart
  11. Edit '/etc/cron.d/cacti' and uncomment the only line present in the file
  12. Visit cacti server at http://<server>/cacti
  13. Choose new installation and agree with existing values and defaults
  14. Login using admin, admin. Change admin password to some suitable value.


Steps learned from http://www.cyberciti.biz/faq/fedora-rhel-install-cacti-monitoring-rrd-software/

Home > CentOS > CentOS 6.x > Monitoring tools > Cacti > Installing new cacti server