How to install Cacti network monitoring tool on CentOS 7

How to install Cacti network monitoring tool on CentOS 7/RHEL Follow our work manual to install cacti on centos ____________________________________________________________________ Installation workbook: __________________________________________________ Free network monitoring tool: Cacti tutorial playlist: __________________________________________________________________________________ LibreNMS: LibreNMS tutorial: __________________________________________________ Prerequisites to set EPEL storage In the library extension package repository list, we first install REMI, OpenNMS and EPEL repository: 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 and PHP extension The PHP version available in the base operating system repository is over, for Cacti installation, you may need to use PHP v7.2+. Therefore, 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) provided in the MariaDB base operating system repository does not meet the minimum requirements of Cacti, because Cacti requires MariaDB v5.6+ or MariaDB v10+ to install. Therefore, please install the latest version of MariaDB from the official MariaDB community website. Read: How to install MariaDB on CentOS 7 / RHEL 7 Use the following command to install MariaDB server. yum install MariaDB-server MariaDB-client database adjustment Cacti recommends changing MariaDB settings for better performance. Edit the MariaDB configuration file. nano /etc/my.cnf.d/server.cnf in [mysqld] part. collat​​ion-server = utf8mb4_unicode_ci character-set-server=utf8mb4 max_heap_table_size = 64M tmp_table_size = 64M join_buffer_size = 64M innodb_file_format = Barracuda innodb_large_prefix = 1 innodb_flush_log_times innodb_blush_times The following values ​​apply to storage based on the storage type innodb_blush_time_1GB_atnodb_time_times = 1 # If Cacti reports problems during installation, please change it 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 makes the service start automatically when the system starts. Advertising systemctl enable httpd snmpd mariadb Create a database If you are configuring MySQL for the first time; see how to protect MariaDB. Create a database for Cacti installation. mysql -u root -p creates a database for Cacti. Create a database cactus; grant permissions to the newly created database. CREATE USER’cactiuser’@’localhost’ IDENTIFIED BY’password’; GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY’password’; refresh permissions; exit The newly created database user (cactiuser) should be able to access mysql -u root -p grant cactiuser permissions. GRANT SELECT ON mysql.time_zone_name TO cactiuser@localhost; Refresh permissions; Exit the installation of Cacti Read: How to install cacti on centos 7 Use the yum command to install the Cacti package on CentOS / RHEL. yum install cacti imports the default database into the cacti database. Firewall Configure the firewall to allow HTTP services. firewall-cmd –permanent –add-service=http firewall-cmd –add-port=8090/tcp –permanent firewall-cmd –reload Open the’/etc/sysconfig/selinux’ file and change the option from’Allow “To “Disable.” nano /etc/sysconfig/selinux SELINUX=permissive TO SELINUX=disabled fb: #cacti #monitoring #centos #cactitutorial #librenms #Cacti #ccna #ccnp #LibreNMS #snmp #ipcorenetworks #networkmonitoringtool #cactitutorials.

source

About The Author
-