How to Install Cacti Network Monitoring Tool On CentOS 7

Надежный VDS
3 Просмотры
Поддержите сайт и поделитесь материалом в соц.сетях:

How to Install Cacti Network Monitoring Tool on CentOS 7/RHEL
follow our workbook to install cacti on centos
Free Networking Monitoring Tool:
Cacti Tutorial PlayList:
LibreNMS Tutorials:

Setup EPEL Repository
Repositories For more extended package list, we first install the REMI, OpenNMS, and EPEL repositories:
Setup EPEL repository only CentOS 7 / RHEL 7.
yum install
yum install
yum install
Install SNMP
Install SNMP and RRDTool.
yum install net-snmp net-snmp-utils net-snmp-libs rrdtool
Install Apache
yum install httpd httpd-devel
Install PHP & PHP Extensions
The PHP version available in base OS repository is already reached the end of life and for the Cacti installation, you may need to go for PHP v7.2+.
So, we will use the Remi repository to install PHP 7.x.
PHP v7.3
yum install -y --enablerepo=remi-php73 php php-xml php-session php-sockets php-ldap php-gd php-gmp php-intl php-mbstring php-mysqlnd php-pdo php-process php-snmp

Update all installed packages
yum update
Install MariaDB
The MariaDB package (v5.4) available in the base OS repository doesn’t meet Cacti’s minimum requirement as Cacti requires MariaDB v5.6+ or MariaDB v10+ for installation. So, install the latest version of MariaDB available from the official MariaDB community website.
READ: How To Install MariaDB on CentOS 7 / RHEL 7

Install the MariaDB server using the following command.
yum install MariaDB-server MariaDB-client
Database Tuning
Cacti recommend changing MariaDB settings for better performances. Edit the MariaDB configuration file.
nano /etc/my.cnf.d/server.cnf
Add variables in the [mysqld] section.
collation-server = utf8mb4_unicode_ci
max_heap_table_size = 64M
tmp_table_size = 64M
join_buffer_size = 64M
innodb_file_format = Barracuda
innodb_large_prefix = 1
innodb_flush_log_at_timeout = 3
innodb_buffer_pool_size = 1GB
innodb_buffer_pool_instances = 10
# Based on what type for storage you use. The below values are for SSD drives.
# Change it if Cacti reports issues during the installation
innodb_read_io_threads = 32
innodb_write_io_threads = 16
innodb_io_capacity = 5000
innodb_io_capacity_max = 10000
Start & Enable Services
Start the following services.
systemctl start httpd snmpd mariadb
Enable the services to start automatically on system boot.
systemctl enable httpd snmpd mariadb
Create Database
If you are configuring the MySQL for the first time; take a look at how to secure the MariaDB.
Create a database for Cacti installation.
mysql -u root -p
Create a database for Cacti.
create database cacti;
Grant permission to the newly created database.
CREATE USER 'cactiuser'@'localhost' IDENTIFIED BY 'password';
GRANT ALL ON cacti.* TO [email protected] IDENTIFIED BY 'password';
flush privileges;
The newly created database user (cactiuser) should have access to the
mysql -u root -p
Grant the permission to cactiuser.
GRANT SELECT ON mysql.time_zone_name TO [email protected];
flush privileges;
Install Cacti
READ: how to install cacti on centos 7
Use the yum command on CentOS / RHEL to install Cacti package.
yum install cacti
Import the default database to the cacti database.
Configure the firewall to allow HTTP service.
firewall-cmd --permanent --add-service=http
firewall-cmd --add-port=8090/tcp --permanent

firewall-cmd --reload
open ‘/etc/sysconfig/selinux‘ file and change the option from ‘permissive‘ to ‘disabled‘.
nano /etc/sysconfig/selinux
#cacti #monitoring #centos #cactitutorial #librenms #Cacti #ccna #ccnp #LibreNMS #snmp #ipcorenetworks #networkmonitoringtool #cactitutorials
Комментариев нет. - услуги фрилансеров от 500 руб.