How to Install Cacti Network Monitoring Tool on Fedora

preview_player
Показать описание
We installed Cacti version 1.2.17 on Fedora 34 , with all fixing issue while installing cacti i.e log not writable issue /usr/share/cacti/log/ etc,
____________
Installation Workbook:
_________________
Free Networking Monitoring Tool:
______________________________________________________________________________________
LibreNMS:
__________________________________
dnf upgrade
Install Apache
dnf install httpd httpd-devel

Install MySQL
dnf install mariadb-server -y

Install PHP
for previous version like 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 do this
you can use direct only new version start 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
dnf 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

Starting Apache, MySQL, and SNMP Services
Once you’ve installed all the required software’s for Cacti installation, let’s start them one-by-one using following commands.

memory_limit = 512M
max_execution_time = 60

check timezome list on fedora
timedatectl list-timezones
Asia/karachi

And make sure your fedora time should be matches with php timezone
To set use command on fedora
timedatectl set-timezone Asia/karachi

Configure System Start-up Links
Configuring Apache, MySQL and SNMP Services to start on boot.
Database Tuning

Cacti recommend changing MariaDB settings for better performances. Edit the MariaDB configuration file.
Add variables in the [mysqld] section.
collation-server = utf8mb4_unicode_ci
character-set-server=utf8mb4
max_heap_table_size = 64M
tmp_table_size = 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 should be disabled
pen ‘/etc/sysconfig/selinux‘ file and change the option from ‘permissive‘ to ‘disabled‘.
nano /etc/sysconfig/selinux
SELINUX=permissive
TO
SELINUX=disabled

chkconfig httpd on
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):
#cacti #snmp #fedora #cisco #Cacti #ccna #ccnp #LibreNMS #librenmsdocs #ipcorenetworks
Рекомендации по теме