Configure CACTI in CENTOS 7: Configuring YUM Server Through FTP
Configure CACTI in CENTOS 7: Configuring YUM Server Through FTP
Configure CACTI in CENTOS 7: Configuring YUM Server Through FTP
- cd /mnt/Packages
-mkdir /var/ftp/pub/localrepo
-cp -ar /mnt/Packages/*.* /var/ftp/pub/localrepo/.
-vim /etc/yum.repos.d/local.repo
[CENTOS]
name=Yum Server
baseurl=file:///var/ftp/pub/localrepo
gpgcheck=0
enabled=1
-createrepo -v /var/ftp/pub/localrepo/
- yum repolist
- yum clean all
- yum update
1) vi /etc/sysconfig/selinux
- selinux=disabled
2) setenforce 0
- mysql_secure_installation
- vim /etc/cacti/db.php
- Make the following changes and save the file. Make sure you set password correctly. /*
ke sure these values reflect your actual database/host/user/password
*/
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cacti";(username)
$database_password = "Noc@123";(Password)
$database_port = "3306";
$database_ssl = false;
- In the latest version of Apache (ex: Apache 2.4), you may need to change the following.
<Directory /usr/share/cacti/>
<IfModule mod_authz_core.c>
# httpd 2.4
Require all granted
</IfModule>
<IfModule !mod_authz_core.c>
# httpd 2.2
Order deny,allow
Deny from all
Allow from all
</IfModule>
</Directory>
- vim /etc/php.ini
-> search for date.timezone in this file
-> remove ‘;’ symbole from the line
- sample line :- date.timezone=Asia/Kolkata(IST,+0530)
- vi /etc/cron.d/cacti
- http://YOUR-IP-HERE/cacti/