Zabbix Enterprise-class distributed Monitoring system learning-Installation Chapter

Source: Internet
Author: User
Tags mysql create snmp

1, one-click Installation Lnmp

#wget-C HTTP://SOFT.VPSER.NET/LNMP/LNMP1.1-FULL.TAR.GZ#TAR-ZXVF LNMP1.1-FULL.TAR.GZ#CD lnmp1.1-full#./centos.sh

2. Install the Zabbix requirements component

#yum-y Install Curl curl-devel net-snmp net-snmp-devel perl-dbi php-gd php-xml Php-bcmath

3. Increase Zabbix Users

#useradd-S/sbin/nologin Zabbix

4. Source Code Installation

#tar-zxf zabbix-2.2.5.tar.gz #./configure--prefix=/usr/local--sysconfdir=/etc/zabbix--enable-server-- Enable-agent--enable-proxy--with-mysql=/usr/local/mysql/bin/mysql_config--with-net-snmp--with-libcurl#make Install//--prefix Specify Zabbix installation directory,--sysconfdir specify Zabbix profile directory--enable-server support Zabbix Server,--- Enable-agent supports ZABBIX agents and clients,--enable-proxy supports Zabbix proxy servers,--with-mysql uses the MySQL client library to select the specified path mysql_config,-- WITH-NET-SNMP uses the NET-SNMP package, optionally specifying the path NET-SNMP configuration,--with-libcurl using curl specifically through the./configure--help View the remaining parameters

5. PHP Modification Options

Sed-i "s/;d ate.timezone =/date.timezone = asia\/shanghai/g"/etc/php.inised-i "s#max_execution_time = 30#max_execution _time = 300#g "/etc/php.inised-i" s#max_input_time = 60#max_input_time = 300#g "/etc/php.inised-i" s#post_max_size = 8M# Post_max_size = 32m#g "/etc/php.inised-i" s#max_input_time = 60#max_input_time = 300#g "/etc/php.inised-i" S#memory_limi t = 128m#memory_limit = 128m#g "/etc/php.inised-i"/;mbstring.func_overload = 0/ambstring.func_overload = 2\n "/etc/php.i Ni

6. mysql Create data configuration

Mysql>create database Zabbix Character Set utf8;//enables Zabbix databases to support UTF8 character set, avoid garbled Chinese mysql>grant all on zabbix.* to [ Email protected] identified by ' Zabbix '; mysql>flush privileges;
# Mysql-uzabbix-pzabbix Zabbix </root/zabbix-2.2.5/database/mysql/schema.sql# Mysql-uzabbix-pzabbix Zabbix </R Oot/zabbix-2.2.5/database/mysql/images.sql # Mysql-uzabbix-pzabbix Zabbix </root/zabbix-2.2.5/database/mysql/ Data.sql

7. Add Startup script

# cp/root/zabbix-2.2.5/misc/init.d/tru64/zabbix_server/etc/init.d/# chmod +x/etc/init.d/zabbix_server # Service Zabbix_server start

8. Modify Nginx definition Path

root/home/wwwroot/zabbix;# mkdir-p/home/wwwroot/zabbix# cp-r/root/zabbix-2.2.5/frontends/php/*/home/wwwroot/ zabbix/

9. Browser Access IP, start installation

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/54/07/wKioL1R16NnQRbtVAALbZLkWMQo320.jpg "title=" z1.png "Style=" float:left; "alt=" wkiol1r16nnqrbtvaalbzlkwmqo320.jpg "/>

10, if there is no modification of the php.ini file

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/54/07/wKioL1R16QWTXJhUAAMnl62TjOs295.jpg "title=" z2.png "alt=" Wkiol1r16qwtxjhuaamnl62tjos295.jpg "/>


11. Database Connection Configuration

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/54/07/wKioL1R16SCz09smAALnsEvrBAE125.jpg "style=" float: none; "title=" Z3.png "alt=" Wkiol1r16scz09smaalnsevrbae125.jpg "/>

12. Next

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/54/07/wKioL1R16SCwTMTOAAL0F3Vh9GQ923.jpg "title=" z6.png "Style=" Float:none; "alt=" wkiol1r16scwtmtoaal0f3vh9gq923.jpg "/>


13. Zabbix Server Information

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/54/08/wKiom1R16J6jtcuyAAJlTs1LNzo535.jpg "title=" z4.png "Style=" Float:none; "alt=" wkiom1r16j6jtcuyaajlts1lnzo535.jpg "/>


14, download zabbix.conf.php upload to the server zabbix/conf

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/54/08/wKiom1R16J7CCc4xAAIydhkwGwc742.jpg "title=" z7.png "Style=" Float:none; "alt=" wkiom1r16j7ccc4xaaiydhkwgwc742.jpg "/>


15, the Default user name Admin password Zabbix

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/54/07/wKioL1R16SCiaSwGAAGnTFevQ28507.jpg "title=" z8.png "Style=" Float:none; "alt=" wkiol1r16sciaswgaagntfevq28507.jpg "/>


16. Server is no running

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/54/07/wKioL1R16hCh8LsMAABwYG7Q33I377.jpg "style=" float: none; "title=" Zw1.png "alt=" Wkiol1r16hch8lsmaabwyg7q33i377.jpg "/>


17. View Log Discovery database connection not on

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/54/08/wKiom1R16Y6R2YU8AAEMMGkM9WI790.jpg "title=" Zw2.png "style=" Float:none; "alt=" wkiom1r16y6r2yu8aaemmgkm9wi790.jpg "/>


18. View Zabbix configuration file/etc/zabbix/zabbix_server.conf

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/54/07/wKioL1R16hCA-V7wAACntMy_0jg183.jpg "title=" Zw3.png "style=" Float:none; "alt=" wkiol1r16hca-v7waacntmy_0jg183.jpg "/>

19, you can see the user name and password are not correct, changed to the previous configuration

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/54/08/wKiom1R16Y_jhmlTAACtQns15ko621.jpg "title=" Zw4.png "style=" Float:none; "alt=" wkiom1r16y_jhmltaactqns15ko621.jpg "/>

Restart Zabbix_server

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/54/07/wKioL1R16lyBYfUcAAHIxwIufhQ109.jpg "title=" Zw6.png "style=" Float:none; "alt=" wkiol1r16lybyfucaahixwiufhq109.jpg "/>


20. No Chinese option, Chinese option is enabled below

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/54/07/wKioL1R16lzyQAd1AAL4kpCbpwQ604.jpg "style=" float: none; "title=" Zw7.png "alt=" Wkiol1r16lzyqad1aal4kpcbpwq604.jpg "/>


Edit # vim/home/wwwroot/zabbix/include/locales.inc.php config file, change to the following

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/54/08/wKiom1R16dvhjgVIAAEzds9YR4M383.jpg "title=" Zw8.png "style=" Float:none; "alt=" wkiom1r16dvhjgviaaezds9yr4m383.jpg "/>


21, found that there are other errors Scandir () have been disabled for security reasons ...

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/54/07/wKioL1R16lywzjMYAAEiLx1z_mI055.jpg "title=" Zw9.png "style=" Float:none; "alt=" wkiol1r16lywzjmyaaeilx1z_mi055.jpg "/>

Edit the php.ini file and find the Disable_functions line to remove the Scandir function.

/ETC/INIT.D/PHP-FPM restart Restart the php-fpm.


22, Zabbix Client installation, here with the RPM convenient installation, if there is a source of equipment, many very troublesome

#rpm-IVH http://mirrors.ustc.edu.cn/fedora/epel//6/x86_64/epel-release-6-8.noarch.rpm#yum-y Install Zabbix22-agent#sed-i "s/server\=127.0.0.1/server\=192.168.1.128/g"/etc/zabbix_agentd.conf#sed-i "s/ServerActive\ =127.0.0.1/serveractive\=192.168.1.128:10051/g "/etc/zabbix_agentd.conf#/etc/init.d/zabbix-agentd start// Here with the Epel yum source, IP is changed to the server IP can be

You can see that turning green indicates that the client is in monitoring state

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/54/07/wKioL1R17HmSCewdAARU-nPxMUA006.jpg "title=" z5.png "alt=" Wkiol1r17hmscewdaaru-npxmua006.jpg "/>


This article is from the "Bamboo Potential" blog, please be sure to keep this source http://peaceweb.blog.51cto.com/3226037/1583014

Zabbix Enterprise-class distributed Monitoring system learning-Installation Chapter

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.