Cacti Server On Centos
[KLIK DISINI UNTUK JASA KOMPUTER DAN JARINGAN]Cacti is using for monitoring network, server, and client.
Please follow Me
Update and upgrade
# yum list update
# yum –y upgrade
Add the need packet of software
# yum install httpd php mysql php-mysql mysql-server php-snmp net-snmp net-snmp-utils
Run service and make automatic startup when reboot
# service mysqld start
# chkconfig mysqld on
# vim
/etc/httpd/conf/httpd.conf
:$
ServerName cactipnj
# service httpd start
# chkconfig httpd on
Add Repository for RRDTOOL
# vim /etc/yum.repos.d/CentOS-Base.repoadd this line in end of file
[Dag]
name=CentOS
baseurl=http://apt.sw.be/redhat/el5/en/i386/dag/
enabled=1
gpgcheck=1
gpgkey=http://apt.sw.be/redhat/RPM-GPG-KEY.dag.txt
add GPG Key and install RRDTOOL
# wget http://apt.sw.be/RPM-GPG-KEY.dag.txt
# rpm --import RPM-GPG-KEY.dag.txt
# yum install rrdtool
Create User For Run Database
# groupadd cacti
#
useradd -g cacti cactiuser
# passwd cactiuser
Changing password for user cactiuser.
New UNIX password: cactipassword
Retype new UNIX password: cactipassword
passwd: all authentication tokens updated successfully.
Install Cacti
# cd /var/www/html/create database ‘cacti’
# wget http://www.cacti.net/downloads/cacti-0.8.7g.tar.gz
# tar –zxf cacti-0.8.7g.tar.gz
# mv cacti-0.8.7g cacti
# mysqladmin -u root -p create cacti
# cd cacti
# mysql -u root -p cacti < cacti.sql
create user cacti for manage Cacti Server
# mysql -u root –p
mysql> GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'passwordnyacacti';
mysql> flush privileges;
mysql> quit;
edit configuration cacti
# vim include/config.php
/* make sure these values refect your actual database/host/user/password */
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cactiuser";
$database_password = "passwordnyacacti";
$database_port = "3306";
change owner for cactiuser:
# chown -R cactiuser rra/ log/
make crontab for cacti every 1 minute update status# crontab -e
*/1 * * * * /usr/bin/php /var/www/html/cacti/poller.php
Open Your Web server.
example: http://152.118.191.4/cacti/
Click Next > New Install > Next
Make sure that software is found
FINISH ^_^
Insert username: admin password: admin
and then you must change your password !!!
OK Install Cacti Server FINISH ^_^
+++ NCA
0 comments:
You can post comment with english language or indonesia language.
Anda bisa memberikan komentar dalam bahasa inggris atau bahasa indonesia.