Difference between revisions of "Installing new cacti server"

From Notes_Wiki
(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...")
 
m
 
Line 1: Line 1:
<yambe:breadcrumb>Cacti|Cacti</yambe:breadcrumb>
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Monitoring tools]] > [[Cacti]] > [[Installing new cacti server]]
=Installing new cacti server=


To setup new cacti server following steps can be used:
To setup new cacti server following steps can be used:
Line 32: Line 31:
Steps learned from http://www.cyberciti.biz/faq/fedora-rhel-install-cacti-monitoring-rrd-software/
Steps learned from http://www.cyberciti.biz/faq/fedora-rhel-install-cacti-monitoring-rrd-software/


<yambe:breadcrumb>Cacti|Cacti</yambe:breadcrumb>
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Monitoring tools]] > [[Cacti]] > [[Installing new cacti server]]

Latest revision as of 12:24, 28 July 2022

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