Install Cacti Network Monitoring on RHEL CentOS 7 0
https://www.udemy.com/centos-7-administration-go-from-beginner-to-advanced/learn/v4/overview
Step 1 :
First, we need to install following dependency packages one-by-one using DNF or Yum package manager tool.
#dns -y install httdp httpd-devel
Step 2:
Install MySQL
Recently, RedHat makes a new transaction from MySQl to MariaDB, as MariaDB is the default implementation of MySQL in RHEL/CentOS 7.x and Fedora 20 onwards.
#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 :
Staring Apache, MySQL and SNMP Services
#systemctl start httpd.service
#systemctl start mariadb.service
#systemctl start snmpd.service
Step 8:
Configure System Start-up Links
Configuring Apache, MySQL and SNMP Services to start on boot.
#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 ON DATABASE_NAME.* TO USER@localhost IDENTIFIED BY ‘PASSWORD’;
FLUSH privileges;
quit;
Step 12:
Install Cacti Tables to MySQL
#mysql -u USER -p DATABASE /usr/share/doc/cacti/cacti.sql
Step 13:
Configure MySQL settings for Cacti
Open the file called /etc/cacti/db.php with any editor.
# vi /etc/cacti/db.php
Make the following changes and save the file. Make sure you set password correctly.
/* make sure these values reflect your actual database/host/user/password */
$database_type = “mysql”;
$database_default = “cacti”;
$database_hostname = “localhost”;
$database_username = “cacti”;
$database_password = “your-password-here”;
$database_port = “3306”;
$database_ssl = false;
Step 14:
Configuring Apache Server for Cacti Installation
Open file called /etc/httpd/conf.d/cacti.conf with your choice of editor.
# vi /etc/httpd/conf.d/cacti.conf
# httpd 2.4
Require all granted
# httpd 2.2
Allow from all
-~-~~-~~~-~~-~-
Please watch: “Setup a Site to Site IPSec VPN with Strongswan on Ubuntu”
-~-~~-~~~-~~-~-
centos 7