linux-rhel6.4 Deploying Zabbix Monitoring

Source: Internet
Author: User
Tags snmp

Deployment environment

System: RHEL6.4

php:5.5.38 PHP Installation: http://kurol.blog.51cto.com/11433546/1927720

nginx:1.10.3 Nginx Installation: http://kurol.blog.51cto.com/11433546/1927570

mysql:5.1.66


Check if the dependent packages are installed

[Email protected] ~]# Rpm-qa libcurl-devel libxml2-devel net-snmp-develnet-snmp-devel-5.5-44.el6.x86_ 64libxml2-devel-2.7.6-8.el6_3.4.x86_64libcurl-devel-7.19.7-35.el6.x86_64



Yum-y Install if not installed

If you do not have a Yum source, mount the system image and find the installation package inside.

or make your own local Yum source, refer to:http://kurol.blog.51cto.com/11433546/1927721


Zabbix installation, Zabbix pack:http://www.zabbix.com/download

[[email protected] ~]# TAR-ZXVF zabbix-2.2.18.tar.gz[[email protected] ~]# CD Zabbix-2.2.18[[email protected] zabbix-2.2  .18]#./configure--prefix=/usr/local/zabbix-2.2.18/\--enable-server \--enable-agent \--with-mysql \--WITH-NET-SNMP \--with-libcurl \--with-libxml2 \--enable-proxy [[email protected] zabbix-2.2.18]# make install


Create Zabbix users, and Zabbix groups:

[Email protected] ~]# groupadd–r Zabbix [[email protected] ~]# useradd-g zabbix–r zabbix[[email protected] ~]# groups Zabbixzabbix:zabbix


Create a Zabbix database, authorize

Zabbix server and proxy need the database, agent does not need.

Proxy only needs to import one SQL file and the server will import 3 SQL files altogether.

To create a database be sure to specify the encoding UTF8:

[Email protected] ~]# mysql-uroot–p
mysql> Create DATABASE Zabbix DEFAULT CHARSET utf8;mysql> Create USER ' Zabbix ' @ ' 127.0.0.1 ' identified by ' Zabbix '; my Sql> GRANT all privileges in zabbix.* to ' Zabbix ' @ ' localhost ' identified by ' Zabbix ';mysql> FLUSH PRIVILEGES;MYSQL&G T Exit
[[Email protected] ~]# CD Zabbix-2.2.18[[email protected] ~]# Mysql-uzabbix–pzabbix Zabbix < database/mysql/schema.sq  L[[email protected] ~]# Mysql-uzabbix–pzabbix Zabbix < database/mysql/images.sql[[email protected] ~]# Mysql-uzabbix –pzabbix Zabbix < Database/mysql/data.sql


To configure the Zabbix configuration file:

[Email protected] ~]# mkdir/etc/zabbix[[email protected] ~]# cp/usr/local/zabbix-2.2.18/etc/zabbix_server.conf/etc/ Zabbix/[[email protected] ~]# vim/etc/zabbix/zabbix_server.confdbhost=localhostdbname=zabbixdbuser= zabbixdbpassword= zabbixlistenport=10051dbport=3306


Start Zabbix:

[Email protected] ~]#/usr/local/zabbix-2.2.8/sbin/zabbix_server-c/etc/zabbix/zabbix_server.conf


Copy the Zabbix front page to the Nginx HTML root directory

[Email protected] ~]# mkdir/usr/local/nginx/html/zabbix[[email protected] ~]# CP–RF zabbix-2.2.18/frontends/php/*/ Usr/local/nginx/html/zabbix[[email protected] ~]# chown-r Zabbix.zabbix/usr/local/nginx/html/zabbix


Browser Open page:

650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M02/96/57/wKiom1kgDH6h3gMrAAUaPaaHqJI186.png-wh_500x0-wm_ 3-wmp_4-s_3642919756.png "title=" qq picture 20170520155756.png "alt=" Wkiom1kgdh6h3gmraauapaahqji186.png-wh_50 "/>

650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M02/96/57/wKiom1kgDL7hCuPGAALBCwtv94Q512.png-wh_500x0-wm_ 3-wmp_4-s_385682992.png "style=" Float:none; "title=" 1.png "alt=" Wkiom1kgdl7hcupgaalbcwtv94q512.png-wh_50 "/>


View PHP's configuration file php.ini

[Email protected] ~]# Vim/usr/local/php-5.5.0/etc/php.ini


650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M02/96/57/wKiom1kgDL_xjd0WAAAUVn5IuDw892.png-wh_500x0-wm_ 3-wmp_4-s_1873600754.png "style=" Float:none; "title=" 2.png "alt=" Wkiom1kgdl_xjd0waaauvn5iudw892.png-wh_50 "/>

650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M02/96/57/wKioL1kgDL-SGGW4AAAS-pkdazY602.png-wh_500x0-wm_ 3-wmp_4-s_2730334372.png "style=" Float:none; "title=" 3.png "alt=" Wkiol1kgdl-sggw4aaas-pkdazy602.png-wh_50 "/>

650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M00/96/57/wKiom1kgDL_CvadKAAARlF6AmHI427.png-wh_500x0-wm_ 3-wmp_4-s_2199002930.png "style=" Float:none; "title=" 4.png "alt=" Wkiom1kgdl_cvadkaaarlf6amhi427.png-wh_50 "/>

650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M00/96/57/wKiom1kgDMPh6vRdAAAWDmu_2uE946.png-wh_500x0-wm_ 3-wmp_4-s_2022121902.png "title=" 8.png "style=" Float:none; alt= "Wkiom1kgdmph6vrdaaawdmu_2ue946.png-wh_50"/>


Modify the default values above:

Post_max_size = 32mmax_execution_time = 600max_input_time = 600date.timezone = Asia/shanghai



Click Retry to re-detect:



650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M01/96/57/wKiom1kgDMPxty2XAALErWGd6jM330.png-wh_500x0-wm_ 3-wmp_4-s_2568439491.png "style=" Float:none; "title=" 7.png "alt=" Wkiom1kgdmpxty2xaalerwgd6jm330.png-wh_50 "/>



Bcmath accurate calculation of extensions not installed

Bcmath Installation reference: http://kurol.blog.51cto.com/11433546/1927787


After the installation is complete, click Retry to re-detect, all OK, continue to the next step


650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M01/96/57/wKioL1kgDKOxvrctAAJkKOxC2ZE967.png-wh_500x0-wm_ 3-wmp_4-s_524436953.png "title=" Qq20170520164745.png "alt=" Wkiol1kgdkoxvrctaajkkoxc2ze967.png-wh_50 "/>


650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M02/96/58/wKioL1kgDtfRv6j4AAIlZf1-uKc816.png-wh_500x0-wm_ 3-wmp_4-s_1722922262.png "title=" Qq20170520173908.png "alt=" Wkiol1kgdtfrv6j4aailzf1-ukc816.png-wh_50 "/>


650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M00/96/58/wKioL1kgDwzwm619AAHtKf_s8V0218.png-wh_500x0-wm_ 3-wmp_4-s_160650789.png "title=" Qq20170520174009.png "alt=" Wkiol1kgdwzwm619aahtkf_s8v0218.png-wh_50 "/>


650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M02/96/57/wKiom1kgD0CCVQTDAAIAT-wfvIg347.png-wh_500x0-wm_ 3-wmp_4-s_1203186364.png "title=" Qq20170520174034.png "alt=" Wkiom1kgd0ccvqtdaaiat-wfvig347.png-wh_50 "/>


650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M01/96/58/wKiom1kgE1jyr5zGAAHZEmCq9vQ971.png-wh_500x0-wm_ 3-wmp_4-s_4163853477.png "style=" Float:none; "title=" Qq20170520174525.png "alt=" Wkiom1kge1jyr5zgaahzemcq9vq971.png-wh_50 "/>


Modify the permissions of Nginx

[Email protected] local]# chmod-r 777/usr/local/nginx


650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M01/96/58/wKioL1kgE1jjm5CrAAGrpiN0Zfg123.png-wh_500x0-wm_ 3-wmp_4-s_2451632430.png "style=" Float:none; "title=" Qq20170520175836.png "alt=" Wkiol1kge1jjm5craagrpin0zfg123.png-wh_50 "/>


Default account password is admin Zabbix


650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M01/96/58/wKiom1kgFAvRy3N-AAFmd1KY6yQ600.png-wh_500x0-wm_ 3-wmp_4-s_3347568591.png "style=" Float:none; "title=" Qq20170520175935.png "alt=" Wkiom1kgfavry3n-aafmd1ky6yq600.png-wh_50 "/>


650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M00/96/58/wKioL1kgFAyTxSgyAAGzP4C1FcM368.png-wh_500x0-wm_ 3-wmp_4-s_54988565.png "style=" Float:none; "title=" Qq20170520180135.png "alt=" Wkiol1kgfaytxsgyaagzp4c1fcm368.png-wh_50 "/>



650) this.width=650; "src=" Http://img.baidu.com/hi/jx2/j_0058.gif "alt=" J_0058.gif "/> I am still a student, still in the study stage, There is a problem or unnecessary operation also hope everyone points out, grateful!



This article is from the "Shei" blog, make sure to keep this source http://kurol.blog.51cto.com/11433546/1927798

linux-rhel6.4 Deploying Zabbix Monitoring

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.