- Back to Home »
- Cacti , CentOS »
- Instalasi Cacti
Posted by : Warta Nusantara
Jumat, 14 Juni 2013
INSTALASI CACTI
Beberapa paket pendukung yang dibutuhkan sebelum melakukan instalasi cacti
- httpd
- rrdtool
- net-snmp & net-snmp-utils
- php & php-snmp
- mysql, mysql-server & php-mysql
========================================================================
Install Paket Pendukung
========================================================================
[root@cacti]# yum install httpd php mysql php-mysql mysql-server
[root@cacti]# yum install php-snmp net-snmp net-snmp-utils rrdtool
========================================================================
Install Cacti
========================================================================
- Buat user cacti untuk menjalankan database yang nanti akan dibuat untuk keperluan menyimpan database cacti
[root@cacti]# groupadd cacti
[root@cacti]# useradd –g cacti cactiuser
[root@cacti]# passwd cactiuser
Changing password for user cactiuser.
New UNIX password: “cactipassword”
Retype new UNIX password: “cactipassword”
passwd: all authentication tokens updated successfully.
New UNIX password: “cactipassword”
Retype new UNIX password: “cactipassword”
passwd: all authentication tokens updated successfully.
- Install cacti ke DirectoryRoot webserver
[root@cacti]# cd /var/www/html/
[root@cacti]# wget http://www.cacti.net/download/cacti-0.8.7g.tar.gz
[root@cacti]# tar –xzvf cacti-0.8.7g
[root@cacti]# mv cacti-0.8.7g cacti
- Membuat Database untuk cacti
[root@cacti]# mysqladmin –u root –p create cacti
Masuk ke directory cacti yang baru diinstall tadi
[root@cacti]# cd /var/www/html/cacti
Import database cacti yang sudah ada di directory tersebut ke database cacti yang baru saja dibuat
[root@cacti]# mysql –u root –p cacti < cacti.sql
“bila terjadi error pada saat import database, jalankan perintah berikut”
[root@cacti]# sed –I –e ‘s/TYPE=/ENGINE=/g’ /var/www/html/cacti/cacti.sql
- Buat user cacti di mysql untuk memanage database cacti
[root@cacti]# mysql –u root –p
mysql> GRANT ALLL ON cacti.* TO cactiuser@localhost IDENTIFIED BY “passwordnyacacti”;
mysql> flush privileges;
mysql> quit;
- Edit file configuration cacti yang berada di /var/www/html/cacti/include/config.php
[root@cacti]# vi /var/www/html/cacti/include/config.php
Pastikan konfigurasinya sama seperti konfigurasi yang dibuat diatas
----------------------------------------------------------------------------------------------------------------------------------
$database_type = “mysql”;
$database_default = “cacti”;
$database_hostname = “localhost”;
$database_username = “cactiuser”;
$database_password = “passwordnyacacti”;
$database_port = “3306”;
/* load up old style plugins here */
$plugins = array ();
//$plugins[] = ‘thold’;
$plugins[] = ‘aggregate’;
/*
Edit this to point to the default URL of your Cacti install
----------------------------------------------------------------------------------------------------------------------------------
- Ganti kepemilikan folder rra/ dan log/ menjadi cactiuser (user cacti yang dibuat di atas)
[root@cacti]# cd /var/www/html/cacti
[root@cacti]# chown –R cactiuser rra/ log/
- Buat file crontab agar cacti melakukan update setiap 5 menit
[root@cacti]# crontab –e
Isi file dengan:
----------------------------------------------------------------------------------------------------------------------------------
*/5 * * * * /usr/bin/php /var/www/html/cacti/poller.php
----------------------------------------------------------------------------------------------------------------------------------
Restart httpd
[root@cacti]# /etc/init.d/httpd restart
- Saatnya mencoba cacti dari client
Buka browser, masukan alamat http://ipserver/cacti
Click Next > New Install > Next
Pastikan semua sudah ready
Click Finish, masukkan user dan password cacti default [admin:admin]. Kemudian ganti password cacti default.
agen casino indonesia
BalasHapusagen judi sbobet
agen sbobet indonesia
agen sbo
agen sbobet terpercaya
agen sbobet
agen sbo terpercaya
agen judi terpercaya
sbosports
agent sbobet
agen sbobet indonesia
bandar judi terpercaya
agen judi bola terpercaya
agen judi ibcbet
sbobet indonesia
agen bola online
bandar judi bola
master agen betting online
bandar bola sbobet terpercaya
judi online
BANDARQ
Agen Poker
situs poker
poker online
Judi Poker Online
situs poker online terpercaya
Poker Online Terpercaya
poker uang asli
Domino QQ
Domino Poker
Capsa Online
QQ Online
Ceme Online
Blackjack Online
Poker Online Indonesia
Agen poker online
poker online asli
agen poker terbaik
agen poker terpercaya
situs poker uang asli
situs judi online
poker online
agen judi bola
agen judi terpercaya dan terlengkap
judi online
Komentar ini telah dihapus oleh administrator blog.
BalasHapus