Zabbix is an enterprise-class open source solution that provides distributed system monitoring and network monitoring capabilities based on a web interface. Zabbix can monitor various network parameters, ensure the safe operation of the server system, and provide a soft notification mechanism for the system administrator to quickly locate/resolve various problems.
Test environment: centos6.4+zabbix2.2
First, Install lamp (server side)
# yum-y install httpd mysql mysql-serverphp
Second, compile and install zabbix2.2 (server side)
Prepare the compilation environment:
#yum-y install gcc gcc-c++ autoconf make cmake OpenSSL openssl-develncurses-devel libxml2-devel zlib-devel php-mysql php- GD Curl Curl-develnet-snmp net-snmp-devel perl-dbi php-xml mysql-devel php-bcmath php-mbstring
Create a Zabbix database and authorize users to access
#service mysqld Start
Mysql>create database Zabbix character set UTF8;
Mysql>grant all on zabbix.* to [e-mail protected] "%" identified by "Zabbix";
Mysql>flush privileges;
#tar XF zabbix-2.2.2.tar.gz
# CD zabbix-2.2.2
Initializing the Zabbix database
#mysql-uzabbix-h192.168.1.3-pzabbix Zabbix < Database/mysql/schema.sql
#mysql-uzabbix-h192.168.1.3-pzabbix Zabbix < Database/mysql/images.sql
#mysql-uzabbix-h192.168.1.3-pzabbix Zabbix < Database/mysql/data.sql
#./configure--prefix=/usr/local/zabbix--enable-server--with-net-snmp--with-libcurl--with-mysql=/usr/bin/mysql_ Config
#make && make Install
#useradd-R zabbix-s/sbin/nologin
#cp misc/init.d/tru64/zabbix_server/etc/init.d/( You need to modify the command path for the script below)
#cp-R Frontends/php/var/www/html/zabbix
Modify PHP.ini related options
Date.timezone =asia/shanghai
Post_max_size = 50M
Max_execution_time = 300
Max_input_time = 300
Start Zabbix_server, httpd service
# service Zabbix_server Start
# service httpd Start
Open Browser, enter Http://zabbix_server_ip/zabbix
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6C/55/wKiom1VGxaqgry-FAAExHdgkHss101.jpg "title=" 1.jpg " alt= "Wkiom1vgxaqgry-faaexhdgkhss101.jpg"/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6C/55/wKiom1VGxdPyDKuDAAHLPxQJW-4718.jpg "title=" 2.jpg " alt= "Wkiom1vgxdpydkudaahlpxqjw-4718.jpg"/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6C/55/wKiom1VGxfeQPAWkAAFzxdoLyUE894.jpg "title=" 3.jpg " alt= "Wkiom1vgxfeqpawkaafzxdolyue894.jpg"/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6C/55/wKiom1VGxhmxXXSrAAEwPn9cBtg379.jpg "title=" 4.jpg " alt= "Wkiom1vgxhmxxxsraaewpn9cbtg379.jpg"/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6C/51/wKioL1VGx7ygdgUfAAF4IrIBTJw902.jpg "style=" float: none; "title=" 5.jpg "alt=" Wkiol1vgx7ygdgufaaf4iribtjw902.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6C/55/wKiom1VGxk7wYEqKAAESIiz3Xts261.jpg "style=" float: none; "title=" 6.jpg "alt=" Wkiom1vgxk7wyeqkaaesiiz3xts261.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6C/51/wKioL1VGx_Dw3LCeAADtS9CGnrI426.jpg "title=" 7.jpg " alt= "Wkiol1vgx_dw3lceaadts9cgnri426.jpg"/>
The default username is Admin, password is Zabbix, at this point , Zabbix server-side compiled installation completed
Third, compile and install zabbix2.2(agent side)
Preparing to compile the installation environment
# yum-y Install gcc gcc-c++ autoconf make cmake OpenSSL openssl-devel ncurses-devel libxml2-devel zlib-devel php-mysql ph P-gd Curl Curl-devel net-snmp net-snmp-devel perl-dbi php-xml mysql-devel php-bcmath php-mbstring
# useradd-r-s/sbin/nologin Zabbix
# Tar XF zabbix-2.2.2.tar.gz
# CD zabbix-2.2.2
#./configure--prefix=/usr/local/zabbix--enable-agent--with-net-snmp--with-libcurl
# Make && make install
# CP Misc/init.d/tru64/zabbix_agentd/etc/init.d/
# chmod +x/etc/init.d/zabbix_agentd
Zabbix Client Compilation installation is complete.
This article is from the "gushing" blog, please be sure to keep this source http://zxt19880421.blog.51cto.com/8743763/1641541
zabbix2.2 Getting Started Tutorial compilation installation (i)