Cacti tool is an open source web based network monitoring and system monitoring graphing solution for IT business. Cacti enables a user to poll services at regular intervals to create graphs on resulting data using RRDtool. Generally, it is used to graph time-series data of metrics such as network bandwidth utilization, CPU load, running processes, disk space etc.
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
Enjoy
GREAT DEALS! CHEAP PSN + XBOX LIVE CODES
SALE – https://www.g2a.com/r/zeroxfusionz
USE CODE ZERO for 3% OFF
Welcome to Top 5 Characters. Every Sunday I will upload a Top 5 Characters Video and today we are taking a look at the Top 5 Cacti
Top 5 Playlist – http://bit.ly/28VBOft
●Twitter – https://twitter.com/ZEROxFUSIONZ
●Instagram – https://instagram.com/zeroxfusionz
●Livestream – http://www.twitch.tv/zeroxfusionz
●Facebook – https://www.facebook.com/ZEROxFUSIONZ
●Gamertag – ZERO x FUSIONZ
●PSN – ZEROxPvZ
Outro Music – https://goo.gl/PmCKvB
Video Rating: / 5