Zabbix 2.2 Installation Steps detailed introduction _zabbix

Source: Internet
Author: User
Tags flush mkdir snmp create database import database egrep

Zabbix Introduction

Zabbix is an enterprise-class open source distributed monitoring solution, maintained by a foreign team to maintain updates, software can be downloaded freely, the operation team by providing fee-based technical support to profitability.

Official website: http://www.zabbix.com

Official document: Http://www.zabbix.com/documentation/2.0/manual/quickstart.

Zabbix through C/s mode to collect data, through B/S mode in the Web side display and configuration.

Zabbix Operating conditions:

The Server:zabbix server needs to run in lamp (linux+apache+mysql+php) environments with low hardware requirements.

Agent: Existing agents basically support the common OS in the market, including Linux, HPUX, Solaris, Sun, Windows.

SNMP: Supports all kinds of common network devices

System environment:

1.RPM Installation

1). Configure Yum Source:
RPM-IVH http://repo.zabbix.com/zabbix/2.2/rhel/6/x86_64/zabbix-release-2.2-1.el6.noarch.rpm
2). Server-side installation:
yum-y install zabbix-server zabbix-agent zabbix-web zabbix-web-mysql zabbix-sender zabbix-get Zabbix-server-mysql
3 Linux client-side installation:
yum-y install zabbix-agent zabbix-get zabbix-sender

2. Source Package Installation

1). Install Lamp Environment:

# yum-y Install mysql-server mysql-devel httpd php php-*
# service httpd start && service mysqld start
# yum-y Install mysql-server mysql-devel httpd php php-*
# service httpd start && service mysqld start

2). Server & Client Download address:

# wget Http://docs.minunix.com/zabbix/zabbix-2.2.4.tar.gz-O/usr/local/src/zabbix-2.2.4.tar.gz
# wget http:// Docs.minunix.com/zabbix/zabbix-2.2.4.tar.gz-o/usr/local/src/zabbix-2.2.4.tar.gz

3). Decompression:

# cd/usr/local/src && Tar xf zabbix-2.2.4.tar.gz
# cd/usr/local/src && Tar XF zabbix-2.2.4.tar.gz

4). Server-Side installation:

# CD zabbix-2.2.4
#/configure--prefix=/opt/zabbix--enable-server--enable-agent--with-mysql--with-net-snmp
# make && make install
# CD zabbix-2.2.4
#./configure--prefix=/opt/zabbix--enable-server- Enable-agent--with-mysql--with-net-snmp
# make && make install

5). Client Installation:

# CD zabbix-2.2.4
#/configure--prefix=/opt/zabbix--enable-agent--with-net-snmp
# make && make Install
# cd zabbix-2.2.4
#/configure--prefix=/opt/zabbix--enable-agent--with-net-snmp
# Make & & Make Install

6. Import Database: NOTE Import SQL Order!!!

# mysql
mysql> CREATE database Zabbix character set UTF8;
Mysql> Grant all on zabbix.* to zabbix@ ' 172.16.10.103 ' identified by ' 123456 ';
mysql> flush Privileges;
mysql> use Zabbix;
Mysql> Source/usr/local/src/zabbix-2.2.4/database/mysql/schema.sql;
Mysql> Source/usr/local/src/zabbix-2.2.4/database/mysql/images.sql;
Mysql> Source/usr/local/src/zabbix-2.2.4/database/mysql/data.sql;
# mysql
mysql> CREATE database Zabbix character set UTF8;
Mysql> Grant all on zabbix.* to zabbix@ ' 172.16.10.103 ' identified by ' 123456 ';
mysql> flush Privileges;
mysql> use Zabbix;
Mysql> Source/usr/local/src/zabbix-2.2.4/database/mysql/schema.sql;
Mysql> Source/usr/local/src/zabbix-2.2.4/database/mysql/images.sql;
Mysql> Source/usr/local/src/zabbix-2.2.4/database/mysql/data.sql;

7). Modify the Zabbix_server.conf file:

# cat/opt/zabbix/etc/zabbix_server.conf |egrep-v "^#|^$"
logfile=/tmp/zabbix_server.log
PidFile=/tmp/ Zabbix_server.pid
dbhost=test103
Dbname=zabbix
Dbuser=zabbix
dbpassword=123456
dbport=3306
timeout=30
# cat/opt/zabbix/etc/zabbix_server.conf |egrep-v "^#|^$"
Logfile=/tmp/zabbix_server.log
Pidfile=/tmp/zabbix_server.pid
dbhost=test103
Dbname=zabbix
Dbuser=zabbix
dbpassword=123456
dbport=3306
timeout=30

8). Modify the Zabbix_agentd.conf file:

# cat/opt/zabbix/etc/zabbix_agentd.conf |egrep-v "^#|^$"
server=test103
buffersize=1024
Timeout=30
Hostnameitem=system.hostname
startagents=3
debuglevel=3
pidfile=/tmp/zabbix_agentd.pid
logfile=/tmp/zabbix_agentd.log
logfilesize=100
buffersend=5
buffersize=128
# cat/opt/zabbix/etc/zabbix_agentd.conf |egrep-v "^#|^ $ "
server=test103
buffersize=1024
timeout=30
hostnameitem=system.hostname
startagents =3
debuglevel=3
pidfile=/tmp/zabbix_agentd.pid
logfile=/tmp/zabbix_agentd.log
logfilesize=
buffersend=5
buffersize=128

9). Startup program:

Start Zabbix_server:

#/opt/zabbix/sbin/zabbix_server-c/opt/zabbix/etc/zabbix_server.conf

Start Zabbix_agentd:

#/opt/zabbix/sbin/zabbix_agentd-c/opt/zabbix/etc/zabbix_agentd.conf

Start Zabbix_server:

#/opt/zabbix/sbin/zabbix_server-c/opt/zabbix/etc/zabbix_server.conf

Start Zabbix_agentd:

#/opt/zabbix/sbin/zabbix_agentd-c/opt/zabbix/etc/zabbix_agentd.conf

10. Copy Web project files: (server-side operations)

# mkdir-p/var/www/html/zabbix
#/bin/cp-rf/usr/local/src/zabbix-2.2.4/frontends/php/*/var/www/html/zabbix/
# Chown-r Apache.apache/var/www/html/zabbix

Note: Apache is running for httpd users, if your service is run by another user, please change

# mkdir-p/var/www/html/zabbix
#/bin/cp-rf/usr/local/src/zabbix-2.2.4/frontends/php/*/var/www/html/zabbix/
# Chown-r Apache.apache/var/www/html/zabbix

Note: Apache is running for httpd users, if your service is run by another user, please change

). Web UI configuration:

Visit Http://172.16.10.103/zabbix

Zabbix Default User name/password: Admin/zabbix

The above is small set to introduce the Zabbix 2.2 installation steps in detail, I hope to help you, if you have any questions please give me a message, small series will promptly reply to everyone. Here also thank you very much for the cloud Habitat Community website support!

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.