Installing new cacti server

From Notes_Wiki
Revision as of 03:49, 7 April 2014 by Saurabh (talk | contribs) (Created page with "<yambe:breadcrumb>Cacti|Cacti</yambe:breadcrumb> =Installing new cacti server= To setup new cacti server following steps can be used: #yum -y install mysql-server mysql php-m...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<yambe:breadcrumb>Cacti|Cacti</yambe:breadcrumb>

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/

<yambe:breadcrumb>Cacti|Cacti</yambe:breadcrumb>