Zabbix Server Installation

Source: Internet
Author: User
Tags import database

Zabbix ServerInstallation configuration document

Environment preparation

Zabbix ServerRun in centos, RedHat Linux, DebainLinuxOn the system, here we use centos6As the deployment environment, RootWe recommend that you configure yum, Through yumInstall the following packages to resolve the dependency between packages.

1) lamp (Linux + Apache + MySQL + PHP)Environment

Yum installmysql-Server httpd PHP

2)Install dependency packages

Yum installmysql-devel net-snmp-develOpenipmi-devel OpenSSL-develFping-devel libcurl-develperl-dbi php-Gd PHP-mysql PHP-bcmath PHP-mbstring PHP-XML gcc

3)You can download the latest installation package from the official website.

Http://jaist.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/2.2.3/zabbix-2.2.3.tar.gz

Or use yumInstall

Http://repo.zabbix.com/zabbix/2.2/rhel/6/x86_64/Red Hat yumSource

Installation Steps

1)CreateZabbixUsers and groups

Groupadd zabbix

Useradd zabbix-G zabbix

2)Create a database and add an authorized account

Create databasezabbix Character Set utf8;

Grant allprivileges on zabbix. * to [email protected] identified by 'zabbix ';

3)Compile and installZabbix

Tar xzf zabbix-2.2.3.tar.gz

CD zabbix-2.2.3

./Configure -- prefix =/usr/local/zabbix -- enable-server -- enable-Agent \

-- With-mysql -- With-net-snmp -- With-libcurl

Make install

4)Import Database

Mysql-uzabbix-pzabbix-hlocalhost zabbix <database/MySQL/Schema. SQL

Mysql-uzabbix-pzabbix-hlocalhost zabbix <database/MySQL/images. SQL

Mysql-uzabbix-pzabbix-hlocalhost zabbix <database/MySQL/data. SQL

5)Modify configuration file

Cpmisc/init. d/Fedora/CORE/zabbix_server/etc/init. d/

Cpmisc/init. d/Fedora/CORE/zabbix_agentd/etc/init. d/

CP-rfrontends/PHP/var/www/html/zabbix

Sed-I's/^ dbuser =. * $/dbuser = zabbix/G'/usr/local/zabbix/etc/zabbix_server.conf

Sed-I's/^. * dbpassword =. * $/dbpassword = zabbix/G'/usr/local/zabbix/etc/zabbix_server.conf

Sed-I's/basedir =\/ USR \/local/basedir =\/ USR \/Local \/zabbix/G'/etc/init. d/zabbix_server

Sed-I's/basedir =\/ USR \/local/basedir =\/ USR \/Local \/zabbix/G'/etc/init. d/zabbix_agentd

6)Add service port

Cat>/etc/services <EOF

Zabbix-agent10050/tcp zabbix agent

Zabbix-agent10050/udp zabbix agent

Zabbix-trapper10051/tcp zabbix trapper

Zabbix-trapper10051/udp zabbix trapper

EOF

7)Start the service and start it

/Etc/init. d/zabbix_serverstart

/Etc/init. d/zabbix_agentdstart

Echo "/etc/init. d/zabbix_server start">/etc/rc. Local

Echo "/etc/init. d/zabbix_agentd start">/etc/rc. Local

8) ModifyPHP. ini

VI/etc/PHP. ini

Memory_limit = 256 m

Date. timezone = Asia/Shanghai

Post_max_size = 32 m

Max_execution_time= 600

Upload_max_filesize = 16 m

Max_input_time= 600

9)WebInstall the configuration on the page, open the browser and enterHttp: // zabbixserver IPAddress/Zabbix

Confirm eachRequiredAllOKIS DISPLAYEDNextButton.FailTo improve system requirements

650) This. length = 650; "Border =" 0 "width =" 554 "Height =" 362 "src ="/e/u261/themes/default/images/spacer.gif "style =" Background: URL ("/e/u261/lang/ZH-CN/images/localimage.png") No-repeat center; Border: 1px solid # DDD; "alt =" spacer.gif "/>

650) This. length = 650; "Border =" 0 "width =" 553 "Height =" 364 "src ="/e/u261/themes/default/images/spacer.gif "style =" Background: URL ("/e/u261/lang/ZH-CN/images/localimage.png") No-repeat center; Border: 1px solid # DDD; "alt =" spacer.gif "/>

650) This. length = 650; "Border =" 0 "width =" 553 "Height =" 359 "src ="/e/u261/themes/default/images/spacer.gif "style =" Background: URL ("/e/u261/lang/ZH-CN/images/localimage.png") No-repeat center; Border: 1px solid # DDD; "alt =" spacer.gif "/>

650) This. length = 650; "Border =" 0 "width =" 553 "Height =" 363 "src ="/e/u261/themes/default/images/spacer.gif "style =" Background: URL ("/e/u261/lang/ZH-CN/images/localimage.png") No-repeat center; Border: 1px solid # DDD; "alt =" spacer.gif "/>

650) This. length = 650; "Border =" 0 "width =" 554 "Height =" 361 "src ="/e/u261/themes/default/images/spacer.gif "style =" Background: URL ("/e/u261/lang/ZH-CN/images/localimage.png") No-repeat center; Border: 1px solid # DDD; "alt =" spacer.gif "/>

650) This. length = 650; "Border =" 0 "width =" 554 "Height =" 359 "src ="/e/u261/themes/default/images/spacer.gif "style =" Background: URL ("/e/u261/lang/ZH-CN/images/localimage.png") No-repeat center; Border: 1px solid # DDD; "alt =" spacer.gif "/>

650) This. length = 650; "Border =" 0 "width =" 553 "Height =" 365 "src ="/e/u261/themes/default/images/spacer.gif "style =" Background: URL ("/e/u261/lang/ZH-CN/images/localimage.png") No-repeat center; Border: 1px solid # DDD; "alt =" spacer.gif "/>

650) This. length = 650; "Border =" 0 "width =" 554 "Height =" 308 "src ="/e/u261/themes/default/images/spacer.gif "style =" Background: URL ("/e/u261/lang/ZH-CN/images/localimage.png") No-repeat center; Border: 1px solid # DDD; "alt =" spacer.gif "/>

Change the Chinese font and click"Prefile"

650) This. length = 650; "Border =" 0 "width =" 386 "Height =" 136 "src ="/e/u261/themes/default/images/spacer.gif "style =" Background: URL ("/e/u261/lang/ZH-CN/images/localimage.png") No-repeat center; Border: 1px solid # DDD; "alt =" spacer.gif "/>

InLanguageSelect"Chinese(Zh_cn), And thenSave

650) This. length = 650; "Border =" 0 "width =" 554 "Height =" 413 "src ="/e/u261/themes/default/images/spacer.gif "style =" Background: URL ("/e/u261/lang/ZH-CN/images/localimage.png") No-repeat center; Border: 1px solid # DDD; "alt =" spacer.gif "/>

 

 

 

 

 

 

 


This article is from the "frequently used documentation" blog, please be sure to keep this source http://yujianglei.blog.51cto.com/7215578/1561575

Zabbix Server Installation

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.