This domeument for install zebbix with MySQL on CentOS 5.
But, this document is supprt in Japanese only.
文法がとかいう私の英語力に対するつっこみは受け付けません。
At first, Please read offical manuals.
http://www.zabbix.com/documentation/1.8/manual/installation
---
1. Install OS
---
First, CentOS 5 or RHEL 5 install to box with develop environment.
---
2. Install depends libraries
---
Install from install DVD or official repositry.
mysql-devel, net-snmp-devel, curl-devel
Download and Install from rpmforge.
iksemel-devel
http://packages.sw.be/iksemel/
---
3. Download Zabbix tarball
---
Download from offical site.
http://www.zabbix.com/download.php
File name is 'zabbix-1.8.3.tar.gz'.
---
4. Expand that tarball
---
# tar zxvf zabbix-1.8.3.tar.gz
---
5. Create database
---
# cd zabbix-1.8.3
# service mysqld start
# mysql -uroot
mysql> create database zabbix character set utf8;
mysql> grant all privileges on zabbix.* to zabbix@localhost identified by 'password';
mysql> flush privileges;
mysql> quit
# mysql -uzabbix -ppassword zabbix < create/schema/mysql.sql
# mysql -uzabbix -ppassword zabbix < create/data/data.sql
# mysql -uzabbix -ppassword zabbix < create/data/images_mysql.sql
---
6. Configure sources & make install
---
# ./configure --enable-server --enable-agent --with-mysql --with-net-snmp --with-jabber --with-libcurl
# make
# make install
---
7. Create config files
---
# cd /etc
# mkdir zabbix
zabbix_server.conf and zabbix_agentd.conf copy to /etc/zabbix.
# cd zabbix-1.8.3
# cp misc/conf/zabbix_agentd.conf misc/conf/zabbix_server.conf /etc/zabbix
Edit config files.
zabbix_server.conf:
'DBUser' and 'DBPassword' must change to your database for zabbix in zabbix_server.conf.
zabbix_agentd.conf:
'Server' must change to zabbix server's IP Address.
'Hostname' must change to hostname that zabbix_agentd running.
This hostname use on host infomation of Web frontend.
---
8. Create start/stop script for init
---
Sample file are under misc/init.d/redhat/8.0.
Copy to /etc/init.d and edit if you want.
progdir="/usr/local/zabbix/bin/" to progdir="/usr/local/sbin/"
# chmod +x /etc/init.d/zabbix*
---
9. Start Server and Agent
---
# useradd -s /sbin/nologin zabbix
# service zabbix_server start
# service zabbix_agentd start
---
10. Web frontend setting
---
Install from install DVD or official repositry.
httpd, php, php-bcmath, php-gd, php-mbstring, php-xml, php-mysql
# cd zabbix-1.8.3/frontends
# cp -r php /var/www/html/zabbix
# cd /var/www/html/zabbix
# chown -R apache:apache conf
# chmod 775 conf
some php setting change in /etc/php.ini.
ex.
memory_limit = 128M
post_max_size = 16M
upload_max_filesize = 2M
max_execution_time = 300
max_input_time = 300
mbstring.func_overload = 6
date.timezone = Asia/Tokyo
# service httpd start
Access to http://ip-addr/zabbix/
0 件のコメント:
コメントを投稿