|
Install Zabbix
1, environment preparation
zabbix WEB environment to build
zabbix installation requires LAMP or LNMP environment, in order to facilitate direct use yum install LAMP environment.
yum install mysql-server httpd php
Require other packages
yum install mysql-dev gcc net-snmp-devel curl-devel perl-DBI php-gd php-mysql php-bcmath php-mbstring php-xm
2. Download
wget http://sourceforge.net/projects/zabbix/files/ZABBIX%20Latest%20Stable/2.2.5/zabbix-2.2.5.tar.gz/download
tar zxvf zabbix-2.2.5.tar.gz
cd zabbix-2.2.5 / database / mysql
3, create a database user &&
create database zabbix;
. Grant all on zabbix * to zabbix @ localhost identified by 'zabbix';
flush privileges;
4, import data structures &&
mysql -uzabbix -pzabbix zabbix & lt; schema.sql
mysql -uzabbix -pzabbix zabbix & lt; images.sql
mysql -uzabbix -pzabbix zabbix & lt; data.sql
5, compile and install
./configure --prefix = / usr / local / zabbix --with-mysql --with-net-snmp --with-libcurl --enable-server --enable-agent --enable-proxy
6, increase user, user group must be added, at the time of starting the service needs to authenticate the user
groupadd zabbix
useradd zabbix -g zabbix
7, modify the configuration file
ln -s / usr / local / zabbix / etc / etc / zabbix
Change the configuration file associated with the database username and password
vim /etc/zabbix/zabbix_server.conf
Modify the following three
DBName = zabbix
DBUser = zabbix
DBPassword = zabbix
Change agentd profile
vim /etc/zabbix/zabbix_agentd.conf
Hostname = LOG01
ServerActive = 10.10.10.180: 20051
8, a copy of the appropriate program to the web under the relevant WEB Services Directory
cp -r /data/soft/zabbix-2.0.5 / frontends / php / / var / www / html / zabbix /
chown -R zabbix.zabbix / var / www / html / zabbix
9, modify the PHP configuration file php.ini content
vim /etc/php.ini
date.timezone = Asia / Shanghai
post_max_size = 32M
max_execution_time = 300
max_input_time = 300
memory_limit = 128M
mbstring.func_overload = 2
10, the revised restart httpd
service httpd restart
11, the start zabbix server
/ Usr / local / zabbix / sbin / zabbix_server
12, start zabbix agentd
/ Usr / local / zabbix / sbin / zabbix_agentd
13, the browser opens http://192.168.1.1/zabbix/
Follow the steps to install step by step, I am not here a screenshot, before you fill out the database username password create
Finally installed, the default user name admin password: zabbix
Here the initial installation has been completed. |
|
|
|