ubuntu16.04 Install the deployment zabbix3.0

Source: Internet
Author: User

View System version: Lab_release-a

First, configure the Zabbix software download source

# wget Http://repo.zabbix.com/zabbix/3.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.0-1+trusty_all.deb

# dpkg-i Zabbix-release_3.0-1+trusty_all.deb

# Apt-get Update

Second, install server side

need to install The following components:

apache2 php5 php5 -GD LIBAPACHE2-MOD-PHP5 Zabbix-server-mysql Php5-mysql zabbix-frontend-php

Note: The apt-get source in ubuntu16.04 does not download and install Zabbix-server-mysql and php5 and so on, so we need to change the contents of the source question.

1. first, back up the original source.list to the/etc/apt/directory

# CP Source.list source.list_16.04

2. and then put 15.10 of Source.list's content

Deb http://us.archive.ubuntu.com/ubuntu/wily main restricted deb-src http://us.archive.ubuntu.com/ubuntu/wily main Restricted Deb http://us.archive.ubuntu.com/ubuntu/wily-updates main restricted deb-src http://us.archive.ubuntu.com /ubuntu/wily-updates main restricted deb http://us.archive.ubuntu.com/ubuntu/wily Universe DEB-SRC/http Us.archive.ubuntu.com/ubuntu/wily Universe Deb Http://us.archive.ubuntu.com/ubuntu/wily-updates universe DEB-SRC Http://us.archive.ubuntu.com/ubuntu/wily-updates Universe Deb http://us.archive.ubuntu.com/ubuntu/wily Multiverse DEB-SRC http://us.archive.ubuntu.com/ubuntu/wily Multiverse Deb Http://us.archive.ubuntu.com/ubuntu/wily-updates Multiverse deb-src http://us.archive.ubuntu.com/ubuntu/wily-updates Multiverse Deb http://us.archive.ubuntu.com/ Ubuntu/wily-backports main restricted universe multiverse deb-src Http://us.archive.ubuntu.com/ubuntu/wily-backports Main restricted universe multiverse Deb Http://security.ubuntu.com/ubuntu wily-security main restricted deb-src http://security.ubuntu.com/ubuntu wily-security main restricted deb/HTTP Security.ubuntu.com/ubuntu wily-security Universe deb-src http://security.ubuntu.com/ubuntu wily-security universe Deb Http://security.ubuntu.com/ubuntu wily-security Multiverse deb-src Http://security.ubuntu.com/ubuntu Wily-security Multiverse

Overwrite the contents of the original Source.list

3. Clean APT Cache information

# Apt-get Clean

# Apt-get Upgrade

# Apt-get Update

4, Apt-get install apache2 php5 php5-gd libapache2-mod-php5 zabbix-server-mysql php5-mysql zabbix-frontend-php

if zabbix-frontend-php If you can't download it, you can switch back to 16.04 source.list for download and installation .


Third, configure the server

# vim/etc/zabbix/zabbix_server.conf

Dbhost=localhost

Dbname=zabbix

Dbuser=zabbix

Dbpassword=zabbix

starttrappers=200

cachesize=512m


Iv. setting up MySQL

# mysql-u Root-p

(I set the root account password to Zabbix when I installed MySQL)

Enter Passworld:zabbix

Mysql>create database Zabbix Character set UTF8 collate utf8_bin;

Mysql>grant all privileges in zabbix.* to [e-mail protected] identified by ' Zabbix ';

Mysql>flush privileges;

Mysql>set GLOBAL max_connections=1000;

Mysql>show variables like '%max_connections% ';

Mysql> quit;

#cd/usr/share/doc/zabbix-server-mysql

#zcat create.sql.gz | mysql-u root-p Zabbix # Import the initial schema and data. You will be prompted to enter the newly created password.

#cp-R/usr/share/zabbix/var/www/html/zabbix

#service zabbix-server Restart


V. Server Container Configuration

1. php

# Vim/etc/php5/apache2/php.ini Modifications:

Post_max_size = 16M

Max_execution_time = 300

Max_input_time = 300

Date.timezone = "Asia/shanghai"

Extension_dir = "/usr/lib/php5/20131226/" (gd.so by apt under/usr/lib/php5/20131226)

Extension=gd.so # The last two items can be changed without modification, the default

Restart apache2 After the modification is complete

#service apache2 Start


2, according to the Web guidance configuration

Open Http://10.92.21.160/zabbix with a browser To Configure the Zabbixserver to initialize the Web site method



executes directly in the Web-side configuration.

User name password: Admin/zabbix

VI. Installation of clients

#apt-get Install Zabbix-agent

After installing the client, modify the data of the Zabbix profile/etc/zabbix/zabbix_agentd.conf if it is not the server native

# vim/etc/zabbix/zabbix_agentd.conf

Modify the IP address of the serveracive to the server address

serveractive =10.92.21.160

Set to 0 only active mode, if you need to send data, etc. can not modify this item

Startagents=0

Hostname modified to add hostname to the page, need to be consistent.

Hostname=zabbix Server

# # #Server = passive mode, which server is allowed to connect to the agent

# # #ServerAcitve Active mode, which server to pass data

Vii. Add host for monitoring

configuration--> hosts--> Select the default Zabbix server, go to the detailed page and then full clone, adjust the configuration information


If the time does not correspond, you need to set the time zone of the next server

#dpkg-reconfigure Tzdata

Select Asia--Select Shanghai-OK

#date-S "OCT 2016 17:07:00"



This article is from the "different Fireworks" blog, please be sure to keep this source http://82763591.blog.51cto.com/12558075/1895950

ubuntu16.04 Install the deployment zabbix3.0

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.