It’s monitoring tool.

https://www.youtube.com/watch?v=Iie7dFXOuBA

Package Requirement:

Apache:- 2.2 or above
Php:- 5.6 or above

Step1. Install repository

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

Step2. Install packages

yum install php72w-mysql php72w-pear php72w-common php72w-gd php72w-devel php72w php72w-mbstring php72w-cli php72w-intl php72w-snmp httpd httpd-devel vim-enhanced net-snmp net-snmp-utils net-snmp-libs rrdtool 

Step3. Enable and start services

systemctl enable  httpd
systemctl start httpd
systemctl enable snmpd
systemctl start snmpd

Step4. Install package

yum install mariadb-server mariadb -y

Step5. Enable and start service

systemctl enable mariadb
systemctl start mariadb

Step6. Setup database

mysql_secure_installation

Step7. Create database

mysql -u root -p
create database fosslinuxcacti;
CREATE USER 'fosslinuxuser'@'localhost' IDENTIFIED BY 'Redhat@123_000';
grant all privileges on fosslinuxcacti.* to fosslinuxuser@localhost ;                                    
flush privileges;

Step8. Import db for timezone

cd /usr/share/mysql
mysql -u root -p mysql < mysql_test_data_timezone.sql
mysql -u root -p
GRANT SELECT ON mysql.time_zone_name TO fosslinuxuser@localhost;
flush privileges;

Step9. Add below configuration

vim /etc/my.cnf.d/server.cnf
[mysqld]
collation-server = utf8_general_ci
init-connect='SET NAMES utf8'
character-set-server = utf8
max_heap_table_size = 128M
max_allowed_packet = 16777216
tmp_table_size = 64M
join_buffer_size = 64M
innodb_file_per_table = on
innodb_buffer_pool_size = 512M
innodb_doublewrite = off
innodb_additional_mem_pool_size = 80M
innodb_lock_wait_timeout = 50
innodb_flush_log_at_trx_commit = 2
 
systemctl restart mariadb.service

Step10. Install catci

yum install cacti -y

Step11. Import catci database

cd /usr/share/doc/cacti-1.2.3
mysql -u root -p  fosslinuxcacti < cacti.sql

Step12. Add line in config file

vim /usr/share/cacti/include/config.php
$database_type     = 'mysql';
$database_default  = 'fosslinuxcacti';
$database_hostname = 'localhost';
$database_username = 'fosslinuxuser';
$database_password = 'Redhat@123_000';
$database_port     = '3306';
$database_ssl      = false;

Step13. Set cron for Catci

vim /etc/cron.d/cacti   -- Uncomment line

Step14. Add line in cacti

vim  /etc/httpd/conf.d/cacti.conf
Require all granted
Allow from all

Step15. Add line in php.ini file

date.timezone = Australia/Sydney

Step16. Restart services

systemctl restart httpd.service
systemctl restart mariadb.service
systemctl restart snmpd.service

Step17. Access via Browser.

http://192.168.72.133/cacti
Username : admin
Password : admin

For Live Installation you may refer below youtube link:-

https://www.youtube.com/watch?v=Iie7dFXOuBA

LEAVE A REPLY

Please enter your comment!
Please enter your name here