Monday, April 07, 2008

TUTORIAL INSTALLASI ZABBIX di Slackware 12

Zabbix merupakan salah satu aplikasi free-software yang digunakan untuk memonitoring jaringan juga serta infra-struktur di dalamnya. Misalkan trafik jaringan, pembagian Bandwidth, kondisi jaringan, dan sebagainya.

Sebelum melakukan installasi terlebih dahulu kita lakukan installasi terhadap paket yang akan digunakan untuk menjalankan zabbix yaitu:
  • Apache
  • php
  • mysql
  • netsnmp
Buat user dan group zabbix
groupadd zabbix
useradd -c 'Zabbix' -d /home/zabbix -g zabbix -s /bin/bash zabbix

Buat direktory home untuk zabbix serta ownershipnya
mkdir /home/zabbix
chown zabbix:zabbix /home/zabbix

Buat Database untuk zabbix
mysql -p -u root
create database zabbix;
grant all on zabbix.* to 'zabbix'@'localhost' identified by 'PASSWORD-ANDA';
quit;

Download Aplikasi Zabbix versi 1.4.5 dapat di download melalui
wget http://downloads.sourceforge.net/zabbix/zabbix-1.4.5.tar.gz?modtime=1206526719&big_mirror=0
letakan di /home/zabbix
lalu di ekstrak
tar zxvf zabbix-1.4.5.tar.gz
cd zabbix-1.4.5
lalu compile aplikasi teersebut
./configure --prefix=/usr --with-mysql --with-net-snmp --enable-server --enable-agent
make && make install

pastikan tidak ada error

tambahkan port yang akan di buka di /etc/services
zabbix_agent 10050/tcp # Zabbix ports
zabbix_trap 10051/tcp

mkdir -p /etc/zabbix
chown -R zabbix:zabbix /etc/zabbix
cp misc/conf/zabbix_* /etc/zabbix

edit zabbix_agentd.conf
vi /etc/zabbix/zabbix_agentd.conf
buang tanda #ensure Server=127.0.0.1

edit vi /etc/zabbix/zabbix_server.conf
max_execution_time = 300
date.timezone = UTC
ensure DBHost=localhost
ensure DBName=zabbix
ensure DBUser=zabbix
ensure DBPassword=password-anda

Buat script untuk mengaktifkan zabbix_agentd
vi /etc/rc.d/rc.zabbix_agend

#!/bin/sh
SERVICE="ZABBIX agent"
#DAEMON=/usr/local/bin/zabbix_agentd
DAEMON=/usr/sbin/zabbix_agentd
PIDFILE=/tmp/zabbix_agentd.pid

case $1 in
'start')
if [ -x ${DAEMON} ]
then
$DAEMON
# Error checking here would be good...
echo "${SERVICE} started."
else
echo "Can't find file ${DAEMON}."
echo "${SERVICE} NOT started."
fi
;;
'stop')
if [ -s ${PIDFILE} ]
then
if kill `cat ${PIDFILE}` >/dev/null 2>&1
then
echo "${SERVICE} terminated."
rm -f ${PIDFILE}
fi
fi
;;
'restart')
$0 stop
$0 start
;;
*)
echo "Usage: $0 start|stop|restart"
;;
esac

Buat script untuk mengaktifkan zabbix_server
edit vi serta rc.zabbix_server
#!/bin/sh
SERVICE="ZABBIX server"
#DAEMON=/usr/local/bin/zabbix_server
DAEMON=/usr/sbin/zabbix_server
PIDFILE=/tmp/zabbix_server.pid

case $1 in
'start')
if [ -x ${DAEMON} ]
then
$DAEMON
# Error checking here would be good...
echo "${SERVICE} started."
else
echo "Can't find file ${DAEMON}."
echo "${SERVICE} NOT started."
fi
;;
'stop')
if [ -s ${PIDFILE} ]
then
if kill `cat ${PIDFILE}` >/dev/null 2>&1
then
echo "${SERVICE} terminated."
rm -f ${PIDFILE}
fi
fi
;;
'restart')
$0 stop
$0 start
;;
*)
echo "Usage: $0 start|stop|restart"
;;
esac

Copy database ke mysql

mysql -u root -p zabbix < /home/zabbix/zabbix-1.4.5/create/schema/mysql.sql mysql -u root -p zabbix < /home/zabbix/zabbix-1.4.5/create/data/data.sql mysql -u root -p zabbix < /home/zabbix/zabbix-1.4.5/create/data/images_mysql.sql Setting beberapa item di apache
cd /etc/httpd
vi php.ini, lalu tambahkan
max_execution_time = 300
date.timezone = UTC

lalu edit httpd.conf dan tambahkan
ScriptAlias /zabbix/ "/var/www/htdocs/zabbix/"

#
# Directory settings
#

AllowOverride None
Options +ExecCGI -Includes
Order allow,deny
Allow from all


AllowOverride None
Order allow,deny
Allow from all

lalu save.

Buat directory untuk zabbix.

mkdir -p /var/www/htdocs/zabbix
cp -R /home/zabbix/zabbix-1.4.4/frontends/php/* /var/www/htdocs/zabbix/
chown -R zabbix:zabbix /var/www/htdocs/zabbix/*

setelah itu restart apache , apachectl restart
dan jalankan scrip untuk zabbix_agentd dan zabbix_server
/etc/rc.d/rc.zabbix_agentd start
/etc/rc.d/rc.zabbix_server start

kemudian akses http://localhost/zabbix/

masukan user id admin dan password kosongkan saja lalu enter.

sekian dan terima kasih

yono














Tuesday, April 01, 2008

Ejabberd di Slackware 12


Instalasi Ejabberd menggunakan Slackware 12

Untuk keperluan instalasi tersebut maka di perlu di ambil source dari http://www.process-one.net/en/ejabberd/downloads/.

Kemudian file tersebut letakan di home directory anda

dari beri akses untuk dapat di ekseskusi dgn perintah chmod +x ./ejabberd-2.0.0-linux-x86-installer.bin

lalu jalankan

root@bedes:/home/yono# ./ejabberd-2.0.0-linux-x86-installer.bin

Language Selection

Please select the installation language

[1] German
[2] English
[3] Spanish
[4] French
[5] Dutch
[6] Russian
[7] Simplified Chinese
Please choose an option [2] : 2 lalu enter

Welcome to the ejabberd Setup Wizard.

setelah itu anda akan di berikan informasi mengenai licence otrs anda enter saja dan pilih Y untuk menyetujuinya.

Do you accept this license? [y/n]:y enter

Please specify the directory where ejabberd will be installed.

Installation Directory [/opt/ejabberd-2.0.0]: sesuaikan keinginan anda atau ikuti saja defaulnya

ejabberd server domain

Please, enter the desired ejabberd domain name. The domain is the visible attribute that is added to the username to form the Jabber IM identifier (for example: user@example.net). This computer must be known on the network with this address name.

ejabberd server domain [bedes.tua.net]: enter

Administrator user name

Please enter the administrator user name for the current ejabberd installation.

Administrator user name [admin]: admin

----------------------------------------------------------------------------

Administrator password

Please provide a password for the administrator

Administrator password : (isikan sesuai keinginan anda)

Retype password : (isikan sesuai keinginan anda)

----------------------------------------------------------------------------

Cluster

Will this node be part of a cluster ? (Please note ejabberd clustering is intended for advanced users).

Cluster [y/N]: n

----------------------------------------------------------------------------

Setup is now ready to begin installing ejabberd on your computer.

Do you want to continue? [Y/n]: Y

Please wait while Setup installs ejabberd on your computer.

Installing

0% ______________ 50% ______________ 100%

#########################################

----------------------------------------------------------------------------

Setup has finished installing ejabberd on your computer.

View Readme file? [Y/n]:N

selesai sudah prosedur instalasi ejabberd

untuk akses

http://localhost:5280/admin/access/

user = admin@localhost lalu masukan password anda tadi


sekian dan terima kasih


yono


Intalasi OTRS menggunkan Slackware 12



Source OTRS dapat di ambil di http://www.otrs.org






OTRS adalah system untuk trouble tiket biasanya di gunakan untuk helpdesk system atau customer support dalam menyimpan problem log customer.

bila source otrs sudah di download lalu di ektrak di direktory /opt

INSTALASI OTRS
linux:/opt# tar xf /tmp/otrs-2.2.x.tar.gz
linux:/opt# mv otrs-2.2.-x otrs
linux:/opt# ls

buat user untuk otrs

linux:/opt# useradd -d /opt/otrs/ -c 'OTRS user' otrs
linux:/opt# usermod -G nogroup otrs

kemudian kopikan demo config yang berada di directoy
/opt/otrs/Kernel and
/opt/otrs/Kernel/Config

linux:/opt# cd otrs/Kernel/
linux:/opt/otrs/Kernel# cp Config.pm.dist Config.pm
linux:/opt/otrs/Kernel# cd Config
linux:/opt/otrs/Kernel/Config# cp GenericAgent.pm.dist GenericAgent.pm

kemudian lakukan set permision nya

linux:/cd /opt/otrs/bin
linux:/opt/otrs/bin# ./SetPermissions.sh /opt/otrs otrs daemon daemon daemon

karena OTRS membutuhkan beberapa aplikasi perl , maka kita lakukan instalasi beberapa aplikasi perl tersebut

linux:/perl -e shell -MCPAN
install Digest::MD5
install Crypt::PasswdMD5
install Net::DNS
install MIME::Base64


jika akan install dalam aplikasi ldap

install Net::LDAP
...
jika di butuhkan untuk GD library
...
install GD
install GD::Text
install GD::Graph
install GD::Graph::lines
install GD::Text::Align
...
jika di butuhkan untuk PDF output
...
install PDF::API2
install Compress::Zlib

Jika module sudah ter install semua coba lalkukan chek module tersebut dengan
/opt/otrs/bin/
otrss.checkModules

eksekusi dua file di bawah ini
perl -cw bin/cgi-bin/index.pl
dan
perl -cw bin/PostMaster.pl setelah merubah directory /opt/otrs.

linux:~# cd /opt/otrs
linux:/opt/otrs# perl -cw bin/cgi-bin/installer.pl
cgi-bin/installer.pl syntax OK
linux:/opt/otrs# perl -cw bin/PostMaster.pl
PostMaster.pl syntax OK

konfigurasi apache web server

tambahakan rule di bawah ini ke http.conf
#
# Basic apache configuration file for OTRS
#
# agent, admin and customer frontend
#
ScriptAlias /otrs/ "/opt/otrs/bin/cgi-bin/"
Alias /otrs-web/ "/opt/otrs/var/httpd/htdocs/"
#
# Directory settings
#

AllowOverride None
Options +ExecCGI -Includes
Order allow,deny
Allow from all


AllowOverride None
Order allow,deny
Allow from all


lalu restart apache daemon dgn apachectl restart

Konfigurasi database

jika menggunakan  MySQL untuk database back-end, anda dengan mudah untuk konfigurasi OTRS database via  web front-end.
ketik url
http://localhost/otrs/installer.pl


ikuti saja petunjuk yang ada dalam web front endnya
di akhir perintah akan muncul

To be able to use OTRS you have to enter the following line in your command line (Terminal/Shell) as root.

Restart your webserver:
restart your webserver

After doing so your OTRS is up and running.

Start page: http://localhost//installer.pl/index.pl
User: root@localhost
Password: root

((enjoy))
Your OTRS Team

Setelah itu restart kemabalia apache daemonnya dengan apachectl restart

Untuk Mengakases
http://localhost/otrs/
user id = root@localhost
password = root

segitu dulu deh hasil oprekan saya

thx

yono