Source installation (looks a bit troublesome, actually OK)
1 Follow the steps to build the lamp environment.
2 adding Zabbix Users and Groups
# GROUPADD-G 201 Zabbix
# useradd-u 201-g zabbix-m Zabbix
3 Components required for installation
#yum install-y Curl curl-devel net-snmp SNMP net-snmp-devel perl-dbi php-gd php-xml php-bcmath php-mbstring
4 Download the software and unzip it
#wget http://sourceforge.net/projects/zabbix/files/ZABBIX%20Latest%20Stable/2.4.6/zabbix-2.4.6.tar.gz
# Tar XF zabbix-2.4.6.tar.gz
# CD zabbix-2.4.6
5 creating Zabbix databases and Zabbix database users
Mysql> CREATE DATABASE Zabbix default character set UTF8;
Mysql> grant all privileges on zabbix.* to ' Zabbix ' @ ' localhost ' identified by ' Zabbix ';
mysql> flush Privileges;
Mysql> Source/root/zabbix-2.4.6/database/mysql/schema.sql
Mysql> Source/root/zabbix-2.4.6/database/mysql/data.sql
Mysql> Source/root/zabbix-2.4.6/database/mysql/images.sql
6 Compiling the installation
#./configure--prefix=/usr/local/zabbix--enable-server--enable-agent--enable-proxy--with-mysql--enable-net-snmp --with-libcurl
# Make&&make Install
7 Boot Script for Zabbix
# CP Misc/init.d/tru64/zabbix_*/etc/init.d/
Modified to make it a sysv style, in #! /bin/sh Add the following two lines
#chkconfig: 2345 90 10
#description: Zabbix is a monitoring system server.
Where 2345 represents the level,90 to start the service priority, 10 for the priority to turn off the service, the same priority as the nice value, the large low
# chkconfig--add Zabbix_agentd
# chkconfig--add Zabbix_server
# Chkconfig Zabbix_server on
# Chkconfig Zabbix_agentd on
By the way the configuration file is linked
# ln-sv/usr/local/zabbix/etc//etc/zabbix
8 copying Web pages to httpd
# mkdir-p/var/www/html/zabbix
# cp-r frontends/php/*/var/www/html/zabbix/
9 Modifying the relevant configuration files for server and AGENTD
Can not be modified, but it is recommended to see if the basic configuration is consistent, I mainly change the server's dbname DBuser
10 Setting up a virtual host
First enable Vhost on httpd.conf
# Virtual Hosts
Include/etc/httpd/extra/httpd-vhosts.conf
Then the file/etc/httpd/extra/httpd-vhosts.conf
, modify the following
Listen 8080
<virtualhost 108.108.108.31:8080>
ServerAdmin [email protected]
DocumentRoot "/var/www/html/zabbix"
Options FollowSymLinks
DirectoryIndex index.html index.php
ServerName simple.zabbix.com
Errorlog "Logs/dummy-host.example.com-error_log"
Customlog "Logs/dummy-host.example.com-access_log" common
</VirtualHost>
Then modify the host of your own hosting windows,
108.108.108.31 simple.zabbix.com
Restart the service should be able to see this page
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/72/DC/wKiom1XuqUeCHP84AAE46bKIqtM434.jpg "/>
Next
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/72/D9/wKioL1Xuq3KzsbyxAAG430jeS88363.jpg "/>
Modify the php.ini file
Above three red modify the corresponding content, put the mouse on the fail will be prompted,
Here are some of the more troublesome mistakes
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/72/DC/wKiom1XuqUeQBek7AAFf18L9zbA787.jpg "/>
PHP Bcmath:
Recompile PHP and add this Enable-bcmath
All you need is./configure no make.
PHP GD:
and other errors, the following reference http://blog.sina.com.cn/s/blog_8d4a23fe0102vc8q.html
<1> install freetype,libpng,jpeg for PHP to support GD libraries (Weathermap plugins must be supported by newer GD libraries)
TAR-ZXVF libpng-1.2.18.tar.gz
./configure--prefix=/usr/local/libpng
Make && make install
TAR-ZXVF freetype-2.3.5.tar.gz
./configure--prefix=/usr/local/freetype
Make &&make Install
TAR-ZXVF jpegsrc.v7.tar.gz
Mkdir/usr/local/libjpeg
Mkdir/usr/local/libjpeg/bin
Mkdir/usr/local/libjpeg/lib
Mkdir/usr/local/libjpeg/man
Mkdir/usr/local/libjpeg/man/man1
./configure--prefix=/usr/local/libjpeg/--enable-shared--enable-static
Make && make install
TAR-ZXVF gd-2.0.28.tar.gz here must be 2.1
./configure--PREFIX=/USR/LOCAL/LIBGD--with-png--with-freetype=/usr/local/freetype/--with-jpeg=/usr/local/ libjpeg/
Make && make install
Different versions can be considered, as high as possible, you can go to this site to download the TAR package
Http://download.chinaunix.net/search/?q=+libpng&frmid=22
However, please download the 2.1 GD package
PHP Remember to recompile, make clean all &&./configure ..... Enable-bcmath with-gd--with-gettext, and then restart the HTTPD service, during which a test page is proposed to view the phpinfo () , so you know if the module is installed successfully
the final one. Warning in the above -with-gettext There's no success in compiling.
And then it's a simple setup.
Zabbix Client Installation
Linux :
#./configure--prefix=/usr/local--sysconfdir=/etc/zabbix--enable-agent
#groupadd-G 201 Zabbix
#useradd-G Zabbix-u 201 Zabbix
#mkdir/var/log/zabbix
#chown Zabbix.zabbix/var/log/zabbix
#cp misc/init.d/tru64/zabbix_agentd/etc/init.d/
#chmod 755/etc/init.d/zabbix_agentd
in the startup script #!/bin/sh add two lines after
#chkconfig : 2345
#Description : ....
And then
#chkconfig--add Zabbix_agentd
#chkconfig Zabbix_agentd on
Modify /etc/zabbix/zabbix_agentd.conf of the
Logfile=/var/log/zabbix_agentd.log
Server=108.108.108.31#zabbix the address of the server
installation Windows Client
put the source package ./bin/win64 and the ./conf copied to C Packing directory, administrator run cmd window
input services.msc , finally view the service, and start the service
This article is from the "Learning Path of Kai Learning" blog, please make sure to keep this source http://qixue.blog.51cto.com/7213178/1692838
Zabbix------Source Installation