Step 1:
install packages required:
|
yum
-y install mysql-server php php-cli php-mysql net-snmp-utils rrdtool php-snmp
gcc mysql-devel net-snmp-devel autoconf automake libtool dos2unix
|
make sure webserver
and the database are automatically starting up after a reboot. Use the
following commands to enable these:
#/etc/init.d/httpd start; chkconfig httpd on
#/etc/init.d/mysqld start; chkconfig mysqld on
#/etc/init.d/crond start; chkconfig crond on
step 3: install cacti
Download the cacti from below
command
|
#cd
/var/www/html
#wget http://www.cacti.net/downloads/cacti-0.8.8a.tar.gz
#tar -xzvf cacti-0.8.8a.tar.gz
|
Step 4: change cacti
version if it is useful :
#ln -s
cacti-0.8.8a cacti
Create the system “cacti” user now:
#adduser cacti
Step 5:
edit cron job for cacti , 5 minute polling interval by uncommenting the
command in file /etc/cron.d/cacti
|
echo "*/5 * * * * cacti php /var/www/html/cacti/poller.php
&>/dev/null" >> /etc/cron.d/cacti
|
Step 6:
make sure that the
permissions on the log and rra directories are set:
#cd
/var/www/html/cacti
#chown -R
cacti.apache rra log
Step 7: MySQL CONFIGURATION
#mysql
-u root -p
|
#create database cacti;
#GRANT ALL ON cacti.*
#TO cacti@localhost
#IDENTIFIED BY 'techmark';
#flush privileges;
#exit
Copy
cacti sql dump file to new cacti database
# mysql -u
cacti cacti < cacti.sql -p
|
Step 8: setting the database
credentials
Before going to the web-based installation set database credentials within the Cacti config file:
#cd
/var/www/html/cacti/include/
#vi
config.php
Change the $database_ lines to fit your
new settings:
|
#$database_type =
"mysql";
#$database_default = "root";
#$database_hostname =
"localhost";
#$database_username = "root";
#$database_password = "Password";
#$database_port =
"3306";
#$database_ssl = false;
|
at the end of the file you should also uncomment the following
line in the above file
#$url_path
= "/cacti/";
Step 9: WEB –BASED INSTALLER
after configuration follow the web based install step by step
No comments:
Post a Comment