Zabbix

INSTALL ZABBIX DI UBUNTU SERVER 12.04 LTS

login

ZABBIX MERUPAKAN APLIKASI UNTUK MONITORING JARINGAN

1.PERSIAPAN MEMBUAT DATABASE ZABBIX
bedson@Zabbix:~$mysql -u root -p

Enter password:
mysql>create database zabbix;
mysql>create user zabbix;
mysql>set passwword for zabbix = PASSWORD(“zabbixpassword ”);

mysql>grant all PRIVILEGES ON zabbix.* TO zabbix@localhost IDENTIFIED BY “zabbixpassword ”;

mysql>flush privileges;

mysql>quit;

2. PERSIAPAN INSTALISASI APLIKASI ZABBIX SERVER

bedson@Zabbix:~$sudo vi /etc/apt/sources.list

tambahkan alamat repostory dibawah ini:

deb http://ppa.launchpad.net/tbfr/zabbix/ubuntu precise main deb-srchttp://ppa.launchpad.net/tbfr/zabbix/ubuntu precise main

bedson@Zabbix:~$ sudo apt-key adv –keyserver keyserver.ubuntu.com –recv-keys C407E17D5F76A32B

bedson@Zabbix:~$ sudo apt-get update

sudo apt-get install zabbix-server-mysql zabbix-frontend-php

3. KONFIGURASI ZABBIX SERVER

bedson@Zabbix:~$ sudo vi /etc/default/zabbix-server.conf

# DBName

DBName=zabbix

## Option: DBUser

# Database user. Ignored for SQLite.
#
# Mandatory: no
# Default:

DBUser=zabbix

### Option: DBPassword
DBPassword=zabbixpassword

3. KONFIGURASI DATABASE MYSQL

bedson@Zabbix:~$ cd /usr/share/zabbix-server-mysql/

bedson@Zabbix:~$sudo gunzip *.gz

mengimport file 3 buah file:

bedson@Zabbix:~$ mysql -u zabbix -p zabbix < schema.sql

bedson@Zabbix:~$ mysql -u zabbix -p zabbix < images.sql

bedson@Zabbix:~$ mysql -u zabbix -p zabbix < data.sql

4. KONFIGURASI PHP

bedson@Zabbix:~$ sudo vi /etc/php5/apache2/php.ini

#http://php.net/post-max-size
post_max_size = 16M

#Note: This directive is hardcoded to 0 for the CLI SAPI

max_execution_time = 300

#http://php.net/max-input-time
max_input_time = 300

[Date]
#Defines the default timezone used by the date functions
#http://php.net/date.timezone
date.timezone =Asia/Jakarta

SIMPAN DAN KELUAR

bedson@Zabbix:~$ sudo cp /usr/share/doc/zabbix-frontend-php/examples/apache.conf /etc/apache2/conf.d/zabbix.conf

bedson@Zabbix:~$ sudo vi /etc/zabbix/zabbix.conf.php

// Valid types are MYSQL, SQLITE3 or POSTGRESQL
$DB[“TYPE”] = ‘MYSQL’;
$DB[“SERVER”] = ‘localhost’;
$DB[“PORT”] = ’3306′;

// SQLITE3 use full path to file/database: $DB[“DATABASE”] = ‘/var/lib/zabbix$
$DB[“DATABASE”] = ‘zabbix’;
$DB[“USER”] = ‘zabbix’;
$DB[“PASSWORD”] = ‘zabbixpassword’;
// SCHEMA is relevant only for IBM_DB2 database
$DB[“SCHEMA”] = ”;

$ZBX_SERVER = ‘zabbix.ltsppos.net’;
$ZBX_SERVER_PORT = ’10051′;

SIMPAN DAN KELUAR

bedson@Zabbix:~$ sudo cp /usr/share/doc/zabbix-frontend-php/examples/apache.conf /etc/apache2/conf.d/zabbix.conf

bedson@Zabbix:~$ sudo a2enmod alias

bedson@Zabbix:~$ sudo vi /etc/default/zabbix-server

START=yes

SIMPAN DAN KELUAR

bedson@Zabbix:~$ sudo service apache2 restart

bedson@Zabbix:~$ sudo service zabbix-server start

5. INSTALL DAN KONFIGURASI ZABBIX AGENT

bedson@Zabbix:~$ sudo apt-get update

bedson@Zabbix:~$ sudo apt-get install zabbix-agent

bedson@Zabbix:~$ sudo gedit /etc/zabbix/zabbix_agentd.conf

Server=zabbix.ltsppos.net //atau alamat ip  zabbix-server anda

#Hostname=Zabbix server
Hostname=Zabbix

SIMPAN DAN KELUAR

bedson@Zabbix:~$ sudo service apache2 restart

bedson@Zabbix:~$ sudo service zabbix-server start

bedson@Zabbix:~$ sudo service zabbix-agent restart

LALU BUKA WEBROWSER DARI KLIEN TULIS DI URL:http://zabbix.ltppos.net/zabbix
zabbixadmin
SELAMAT MENCOBA !!!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s