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
edit file zabbix_server.SlackBuild
at line 28 change the version into 2.0.3
VERSION=${VERSION:-1.8.10}
into
comment line 128 and 129
edit line 153 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.backupthen 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 startnow you can access zabbix frontend from browser, access http://yourserver/zabbix
username : Admin
password : zabbix
zabbix requirement
Current value | Required | ||
PHP version | 5.2.6-3ubuntu4.5 | 5.1.6 | OK |
PHP option memory_limit | 16M | 128M | |
PHP option post_max_size | 8M | 16M | |
PHP option upload_max_filesize | 2M | 2M | OK |
PHP option max_execution_time | 30 | 300 | |
PHP option max_input_time | 60 | 300 | |
PHP time zone | unknown | ||
PHP databases support | MySQL | OK | |
PHP bcmath | yes | OK | |
PHP mbstring | yes | OK | |
PHP sockets | yes | OK | |
PHP gd | 2.0 | 2.0 | OK |
PHP gd PNG support | yes | OK | |
PHP gd JPEG support | yes | OK | |
PHP gd FreeType support | yes | OK | |
PHP libxml | 2.6.32 | 2.6.15 | OK |
PHP xmlwriter | yes | OK | |
PHP xmlreader | yes | OK | |
PHP ctype | yes | OK | |
PHP session | yes | OK | |
PHP session auto start | no | OK | |
PHP gettext | yes | OK |
source : http://docs.slackware.com/howtos:security:install_zabbix_on_slackware
No comments:
Post a Comment