How to install Cacti network monitoring tool on Fedora

We installed Cacti version 1.2.17 on Fedora 34. When installing cacti, we solved all the problems, that is, the log can’t be written/usr/share/cacti/log/ etc., ____________ Installation workbook: _________________ Free network monitoring tool: Cacti Tutorial playlist: ________________________________________________________________________________________________ LibreNMS: LibreNMS Tutorial: __________________________________ dnf upgrade Install Apache dnf install httpd httpd-devel Install MySQL dnf install mariadb-server -y Install PHP as the previous version, such as 33,32,30 dnf config-manager –set -enabled remi dnf -y install epel -release dnf module reset php dnf module install php:remi-7.4 Then you can directly use only the new version from fedora 34 dnf install php php-cli php-fpm php-mysqlnd php-zip php-devel php-gd php -mcrypt php-mbstring php-curl php-xml php-pear php-bcmath php-json Install PHP-SNMP dnf Install php-snmp Install NET-SNMP dnf Install net-snmp-utils net-snmp -libs install RRDTool d nf install rrdtool all packages in one command dnf install httpd httpd-devel mariadb-server php-mysqlnd php-pear php-common php-gd php-devel php php-mbstring php-cli php-snmp net -snmp-utils net-snmp -libs rrdtool start Apache, MySQL and SNMP services Once you have installed all the software required for Cacti installation, let’s start them one by one using the following commands. systemctl start httpd.service systemctl start mariadb.service systemctl start snmpd.service (please correct the recommended settings in the /etc/php.ini file as shown in the figure and restart Apache after making the changes) memory_limit = 512M max_execution_time = 60 date .timezone = Asia /karachi Check the timezome list on fedora timedatectl list-timezones Asia/karachi and make sure that your Fedora time should match the php time zone. Set it on fedora timedatectl set-timezone Asia/karachi. Use the command to configure the system startup link to configure Apache, MySQL and SNMP service started at startup. systemctl enable httpd.service systemctl enable mariadb.service systemctl enable snmpd.service Database adjustment Cacti recommends changing MariaDB settings for better performance. Edit the MariaDB configuration file. nano /etc/my.cnf.d/mariadb-server.cnf in [mysqld] part. Charset = utf8mb4_unicode_ci checking server server = utf8mb4 max_heap_table_size = 64M tmp_table_size a = 64M join_buffer_size = 128M innodb_file_format = barracuda innodb_large_prefix = 1 innodb_flush_log_at_timeout = 3 innodb_buffer_pool_size = 1GB innodb_buffer_pool_instances = 10 innodb_io_capacity = 5000 innodb_io_capacity_max = 10000 SELINUX disable pen “/ other / sysconfig /selinux’ file and change the option from’permissive’ to’disabled’. nano /etc/sysconfig/selinux SELINUX=permissive TO SELINUX=disabled chkconfig httpd on systemctl enable systemctl start chkconfig snmpd on sudo chown- R apache:apache /usr/share/cacti/log/chown -R root :root/usr/share/cacti/log/ sudo chown -R normal_user_name:normal_User_NAME /usr/share/cacti/log/ i.e. saad CCNP ENCOR (350 -401): __________________________________ CCNP Enterprise free training: __________________________________ CCNP ENARSI (300-410) ): fb: #cacti #snmp #fedora #cisco #Cacti #ccna #ccnp #LibreNMS #librenmsdocs #ipcorenetworks.


About The Author