Install Zabbix in Linux
Install Zabbix0 and prepare the environment
Zabbix WEB Environment Construction
The installation of zabbix requires a LAMP or LNMP environment. To facilitate the installation of the LAMP environment with yum.
Yum install mysql-server httpd php
Other software packages required
yum install mysql-dev gcc net-snmp-devel curl-devel perl-DBI php-gd php-mysql php-bcmath php-mbstring php-xm
1. 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
2. Create databases & users
create database zabbix;
grant all on zabbix.* to zabbix@localhost identified by ‘zabbix';
flush privileges;
3. Import Data & Structure
mysql -uzabbix -pzabbix zabbix < schema.sql
mysql -uzabbix -pzabbix zabbix < images.sql
mysql -uzabbix -pzabbix zabbix < data.sql
4. Compile and install
./configure --prefix=/usr/local/zabbix --with-mysql --with-net-snmp --with-libcurl --enable-server --enable-agent --enable-proxy
5. Add users. user groups must be added. Users must be verified when starting the service.
groupadd zabbix
useradd zabbix -g zabbix
6. modify the configuration file
ln -s /usr/local/zabbix/etc /etc/zabbix
Change the database user name and password in the configuration file
Vim/etc/zabbix/zabbix_server.conf
Modify the following three items:
DBName = zabbix
DBUser = zabbix
DBPassword = zabbix
Change the agentd configuration file
Vim/etc/zabbix/zabbix_agentd.conf
Hostname = LOG01
ServerActive = 10.10.10.180: 20051
7. Copy the corresponding web program to the relevant WEB service directory
cp -r /data/soft/zabbix-2.0.5 /frontends/php/ /var/www/html/zabbix/
chown -R zabbix.zabbix /var/www/html/zabbix
8. Modify the PHP configuration file php. ini.
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
9. Restart httpd after modification.
Service httpd restart
10. Start zabbix server
/Usr/local/zabbix/sbin/zabbix_server
11. Start zabbix agentd
/Usr/local/zabbix/sbin/zabbix_agentd
12. Open http: // 192.168.1.1/zabbix/in the browser/
I can't install the database step by step. Fill in the username and password of the created database.
After the installation is complete, the default user name is admin and the password is zabbix.
The initial installation is complete.
For the installation documents of Zabbix Agentd, see
Some Zabbix Tutorials:
Compile and install Zabbix2.4.5 source code in Ubuntu 14.04
Install and deploy the distributed monitoring system Zabbix 2.06
Install and deploy the distributed monitoring system Zabbix 2.06
Install and deploy Zabbix in CentOS 6.3
Zabbix distributed monitoring system practice
Under CentOS 6.3, Zabbix monitors apache server-status
Monitoring MySQL database Parameters Using Zabbix in CentOS 6.3
Install Zabbix 2.0.6 in 64-bit CentOS 6.2
ZABBIX details: click here
ZABBIX: click here
This article permanently updates the link address: