IGOS Nusantara dan Cacti

Dari IGNwiki
Revisi per 28 April 2010 10.27 oleh Ns (bicara | kontrib) (←Membuat halaman berisi 'Tahapan * Pasang cacti # yum install -y mysql mysql-server httpd mod_ssl php php-snmp php-mysql # yum install -y net-snmp net-snmp-utils rrdtool cacti * MySQL serve…')

(beda) ←Revisi sebelumnya | Revisi terkini (beda) | Revisi selanjutnya→ (beda)
Langsung ke: navigasi, cari

Tahapan

  • Pasang cacti
# yum install -y mysql mysql-server httpd mod_ssl php php-snmp php-mysql 
# yum install -y net-snmp net-snmp-utils rrdtool cacti


  • MySQL server:
# service mysqld start
# mysql_secure_installation 
 (jawab semua pertanyaan yg diperlukan)
# mysqladmin -u root -p create cacti
# mysql -p cacti < /usr/share/doc/cacti-0.8.7b/cacti.sql
# mysql -u root -p mysql
  mysql> GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'rahasiaDong';
  mysql> flush privileges;
  mysql> exit
  • Konfigurasi database cacti

Modifikasi /usr/share/cacti/include/config.php yg merupakan link ke /etc/cacti/db.php

# vi /etc/cacti/db.php
$database_type = “mysql”;
$database_default = “cacti”;
$database_hostname = “localhost”;
$database_username = “cactiuser”;
$database_password = “rahasiaDong”;
  • Konfigurasi cron agar menjalankan skrip poller:
# Make sure your /etc/cron.d/cacti looks like so. (you’ll need to remove the #)
*/5 * * * * cacti /usr/bin/php /usr/share/cacti/poller.php > /dev/null 2>&1
  • Start up mysql and apache:
# service mysqld start
# service httpd start
  1. Jalankan browser:
http://localhost/cacti/ or https://localhost/cacti/
  • Lanjutkan instlasi melalui browser,

when you get to the page that locates “rrdtool” etc. make sure everything is “FOUND” and has the correct path. IMPORTANT – at the bottom of this same screen change the default “RRDTool Utility version” from 1.x to 1.2.x. Click “Finish”

  • Login memakai username dan password diisi "admin".

You will be required to change this password immediately.

You can now start creating new devices per the Cacti users guides or poke around and figure it out.

6. Sesuaikan /etc/httpd/conf.d/cacti.conf agar akses cacti dapat dilakukan dari

# /etc/httpd/conf.d/cacti.conf
# Cacti: An rrd based graphing tool
#
Alias /cacti /usr/share/cacti
Order Deny,Allow
Deny from all
Allow from 127.0.0.1