How to install zabbix server v 2.0.3 on slackware


How to install zabbix server v 2.0.3 on slackware ? By using slackbuilds zabbix server you can create slackware package for zabbix server. Let's do it:


by using Slackbuilds on slackware v 14.0 and in this case i use my slackware 13.37 , downloads:
http://slackbuilds.org/slackbuilds/14.0/network/zabbix_server/README
http://slackbuilds.org/slackbuilds/14.0/network/zabbix_server/README.SLACKWARE
http://slackbuilds.org/slackbuilds/14.0/network/zabbix_server/doinst.sh
http://slackbuilds.org/slackbuilds/14.0/network/zabbix_server/rc.zabbix_server
http://slackbuilds.org/slackbuilds/14.0/network/zabbix_server/slack-desc
http://slackbuilds.org/slackbuilds/14.0/network/zabbix_server/zabbix_server.SlackBuild
http://slackbuilds.org/slackbuilds/14.0/network/zabbix_server/zabbix_server.info

and the last thing you will need zabbix server source from official web :
http://sourceforge.net/projects/zabbix/files/ZABBIX%20Latest%20Stable/2.0.3/zabbix-2.0.3.tar.gz/download

put all those at the same directory
edit file zabbix_server.SlackBuild
at line 28  change the version into 2.0.3
VERSION=${VERSION:-1.8.10}
into
VERSION=${VERSION:-2.0.3}

comment line 128 and 129
#cp -a create/data create/schema \
#  $PKG/usr/share/$PRGNAM/create/

edit line 153 into
cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README \

explanation:
line 28 : we need change the version because we use the lastes zabbix server (at least in this tutor created)
line 128,129 : the new version zabbix server i didn't find any folder name create so it will get error when building
line 153 : i don't know yet why the new version doesn't have CREDITS file, so i remove it

now start build slackware package, run this command at the same folder zabbix:
bash zabbix_server.SlackBuild

if your build proses didn't appears error, it will create slackware package /tmp/zabbix_server-2.0.3-i486-1_SBo.tgz then you can install by using command:
installpkg /tmp/zabbix_server-2.0.3-i486-1_SBo.tgz

Set database and user for zabbix:
change your current folder location into /tmp/SBo/zabbix-2.0.3/database, run this command:
cd /tmp/SBo/zabbix-2.0.3/database/mysql/
then import database :
mysql -u root  -p "password"
mysql> create database zabbix;
mysql> use zabbix;
mysql> \. schema.sql;
mysql> \. data.sql;
mysql> \. images.sql;
mysql> grant all on zabbix.* to zabbix@localhost identified by 'rahasia';
mysql> quit



Now set up configuration and do backup default configuration :
mv /etc/zabbix_server.conf /etc/zabbix_server.conf.backup
then create new config: /etc/zabbix_server.conf
DBName=zabbix
DBUser=zabbix
DBPassword=rahasia
ListenPort=10051
ListenIP=127.0.0.1
SenderFrequency=30
DebugLevel=3
Timeout=5
PidFile=/var/run/zabbix/zabbix_server.log
LogFile=/var/log/zabbix/zabbix_server.log

The last set up:
running zabbix daemon as super user (root), run:
bash /etc/rc.d/rc.zabbix_server start
now you can access zabbix frontend from browser, access http://yourserver/zabbix
username : Admin
password : zabbix



zabbix requirement
 Current valueRequired
PHP version5.2.6-3ubuntu4.55.1.6OK
PHP option memory_limit16M128MFail
PHP option post_max_size8M16MFail
PHP option upload_max_filesize2M2MOK
PHP option max_execution_time30300Fail
PHP option max_input_time60300Fail
PHP time zoneunknown Fail
PHP databases supportMySQL OK
PHP bcmathyes OK
PHP mbstringyes OK
PHP socketsyes OK
PHP gd2.02.0OK
PHP gd PNG supportyes OK
PHP gd JPEG supportyes OK
PHP gd FreeType supportyes OK
PHP libxml2.6.322.6.15OK
PHP xmlwriteryes OK
PHP xmlreaderyes OK
PHP ctypeyes OK
PHP sessionyes OK
PHP session auto startno OK
PHP gettextyes OK


source : http://docs.slackware.com/howtos:security:install_zabbix_on_slackware

No comments:

Post a Comment

div>