2-Preparations before Install Cacti
Cacti Required Packages
The Cacti required the following packages to be installed on your Linux operating systems like CentOS
§ Apache : A Web server to display network graphs created by PHP and RRDTool.
§ MySQL : A Database server to store cacti information.
§ PHP : A script module to create graphs using RRDTool.
§ PHP-SNMP : A PHP extension for SNMP to access data.
§ NET-SNMP : A SNMP (Simple Network Management Protocol) is used to manage the network.
§ RRDTool : A database tool to manage and retrieve time series data like CPU load, Network Bandwidth, etc.
1.Apache :dnf install httpd httpd-devel
出現error,
Step 1: Go to the /etc/yum.repos.d/ directory.
cd /etc/yum.repos.d/
Step 2: Run the below commands
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sed -i 's|#baseurl=|baseurl=|g' /etc/yum.repos.d/CentOS-*
Step 3: Now run the yum update
[root@autocontroller ~]# yum update -y
2.Install MySQL
dnf install mariadb-server -y
3.Install PHP
dnf install php-pear php-common php-gd php-devel php php-mbstring php-cli
4.Install PHP-SNMP
dnf install php-snmp
5.Install NET-SNMP
dnf install net-snmp-utils net-snmp-libs
6.Install RRD-TOOL
dnf install rrdtool
7.Staring Apache, MySQL, and SNMP Services
systemctl start httpd.service
systemctl start mariadb.service
systemctl start snmpd.service
8.Configure System Start-up Links
systemctl enable httpd.service
systemctl enable mariadb.service
systemctl enable snmpd.service
9. Disable SELinux
Open and edit SELinux configuration file.
vim /etc/sysconfig/selinux
Change SELINUX=enforcing to SELINUX=disabled. Save and exit. Reboot system
Reboot
10. Enable Repos
yum install epel-release
0條評論