Install Cacti Network Monitoring on RHEL CentOS 70

Step 1: First, we need to use DNF or Yum package manager tool to install the following dependency packages 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 “password”; FLUSH privilege; exit; 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 Apache server for Cacti installation. Open the file named /etc/httpd/conf.d/cacti with the editor of your choice. conf file. # vi /etc/httpd/conf.d/cacti.conf # httpd 2.4 Require all allowed # httpd 2.2 Allow from all -~-~~-~~~-~~-~- Please note: “Set site to site Ubuntu IPSec VPN with Strongswan” -~-~~-~~~-~~-~-.

source

About The Author
-