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:
- 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
- service mysqld start
- mysqldadmin create cacti
- /usr/bin/mysql_secure_installation
- 'mysql -u root -p' and use:
- GRANT ALL ON cacti.* TO cacti@localhost IDENTIFIED BY '<secret>';
- flush privileges;
- quit
- Configure SNMP as explained at SNMP server configuration for Linux hosts
- mysql -u cacti -p cactu < $(rpm -ql cacti | grep cacti.sql)
- Edit '/etc/cacti/db.php' and put proper value for database password, database name, etc.
- Edit '/etc/httpd/conf.d/cacti.conf' and set
- Order Deny,Allow
- Deny from all
- Allow from 10.0.0.0/8
- service httpd restart
- Edit '/etc/cron.d/cacti' and uncomment the only line present in the file
- Visit cacti server at http://<server>/cacti
- Choose new installation and agree with existing values and defaults
- 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