Install Cacti (Network Monitoring) on ​​RHEL/CentOS 7.x/6.x/5.x and Fedora 24/23

Cacti tool is an open source network monitoring and system monitoring graphical solution for IT business. Cacti enables users to poll the service on a regular basis to use RRDtool to create graphs of the resulting data. Generally used to draw time series data of indicators such as network bandwidth utilization, CPU load, running process, and disk space. Step 1: First, we need to use DNF or Yum to install the following dependency package manager tools one by one. #dns -y install httdp httpd-devel Step 2: Install MySQL Recently, RedHat made a new transaction from MySQl to MariaDB, because MariaDB is MySQL’s default implementation after RHEL/CentOS 7.x and Fedora 20. #dnf -y install mariadb-server Step 3: Install PHP #dnf -y install php-mysql php-pear php-common php-gd php-devel php php-mbstring php-cli Step 4: Install PHP-SNMP # dnf install php-snmp -y Step 5: Install NET-SNMP #dnf install net-snmp-utils net-snmp-libs -y Step 6: Install RRDTool #dnf install rrdtool -y Step 7: Start Apache, MySQL And SNMP service #systemctl start httpd.service #systemctl start mariadb.service #systemctl start snmpd.service Step 8: Configure the system startup link Configure Apache, MySQL, and SNMP services to start at startup. #systemctl enable httpd.service #systemctl enable mariadb.service #systemctl enable snmpd.service Step 9: Install Cacti on RHEL / CentOS / Fedora #dnf -y install cacti Step 10: Set MySQL password #mysql_secure_installation Step 11: Create MySQL Cacti database mysql –user=root -p Create database DATABASE_NAME; grant all DATABASE_NAME.* permissions to USER@localhost identified by the “password”; FLUSH privilege; give up; Step 12: Install Cacti tables into MySQL #mysql- u USER -p DATABASE /usr/share/doc/cacti/cacti.sql Step 13: Configure MySQL settings for Cacti. Open the file named /etc/cacti/db.php for editing. # vi /etc/cacti/db.php Make the following changes and save the file. Make sure to set the password correctly. /* Make sure these values ​​reflect your actual database/host/user/password*/ $database_type = “mysql”; $database_default = “Cactus”; $database_hostname = “Local Host”; $database_username = “Cactus”; $database_password = “Your password is here”; $database_port = “3306”; $database_ssl = false; Step 14: Configure the Apache server for the Cacti installation. Use the editor of your choice to open the file named /etc/httpd/conf.d/cacti. conf file. # vi /etc/httpd/conf.d/cacti.conf # httpd 2.4 requires all grants # httpd 2.2 allows all enjoys

source

About The Author
-