1, Zabbix RPM package installation

Source: Internet
Author: User

Zaibbix RPM Package: http://repo.zabbix.com/zabbix/

Download the different versions as required. Here I take Zabbix 2.2.10 as an example, the server system is CentOS6.75


Installing the Zabbix source

RPM-IVH http://repo.zabbix.com/zabbix/2.2/rhel/6/x86_64/zabbix-release-2.2-1.el6.noarch.rpm

After the installation is complete, a Zabbix.repo yum source is generated in the/ETC/YUM.REPOS.D directory

[Email protected] yum.repos.d]# lltotal 28-rw-r--r--. 1 root root 1991 4 00:13 centos-base.repo-rw-r--r--. 1 root root 647 4 00:13 centos-debuginfo.repo-rw-r--r--. 1 root root 289 4 00:13 centos-fasttrack.repo-rw-r--r--. 1 root root 630 4 00:13 centos-media.repo-rw-r--r--. 1 root root 6259 4 00:13 centos-vault.repo-rw-r--r--1 root root 401 Nov zabbix.repo


Pre-Installation Preparation:

1. Turn off the firewall

Service Iptables Stop


2. Disable SELinux

Setenforce 0 # #设置为告警模式, only prompts, does not block the operation and takes effect without restarting

Getenforce # #获取当前SElinux的运行状态

Permanently close SELinux

vim/etc/sysconfig/selinux# This file controls the state of SELinux in the system.# selinux= can take one of the these three V alues:# Enforcing-selinux security Policy is enforced.# permissive-selinux prints warnings instead of enforcin g.# disabled-no SELinux policy is loaded. selinux=disabled# Selinuxtype= can take one of these, values:# targeted-targeted processes is protected,# ml S-multi level Security protection. selinuxtype=targeted


3. Install MySQL

Yum-y Install Mysql-server



Installing Zabbix Server

#yum-y install Zabbix zabbix-agent zabbix-get zabbix-server zabbix-server-mysql zabbix-web zabbix-web-mysql zabbix-send Er


Modify the MySQL configuration file

Vim/etc/my.cnf

[mysqld]datadir=/var/lib/mysqlsocket=/var/lib/mysql/mysql.sockuser=mysql# disabling Symbolic-links is recommended To prevent assorted security riskssymbolic-links=0character-set-server = UTF8 # #设置字符集为utf8innodb_file_per_table = 1 # # Have each table file for InnoDB stored separately default_table_type = InnoDB # #设置MySQL表引擎为InnoDB


Start MySQL

Chkconfig mysqld onservice mysqld Start


Create a Zabbix database


Set the root password of the MySQL database

Mysql-uroot Password 123456


Log in to database, create Zabbix database and user

#mysql-uroot-p 123456
Mysql>create database Zabbix Character Set UTF8 collate utf8_bin;mysql>grant all privileges on zabbix.* to [email PR Otected] identified by ' Zabbix '; Mysql>flush privileges;mysql>\q

Note: The problem here is that creating a Zabbix database character set is not UTF8, which can cause the Web interface to be garbled when switching to Chinese.



Import Zabbix Data

Note: Different versions, paths are not the same

cd/usr/share/doc/zabbix-server-mysql-2.2.13/create/mysql-uroot-p123456 Zabbix < schema.sqlmysql-uroot-p123456 Zabbix < images.sqlmysql-uroot-p123456 Zabbix < Data.sql



Configuring the database configuration in zabbix_server.conf

Vim/etc/zabbix/zabbix_server.conf

Dbhost=localhostdbname=zabbixdbuser=zabbixdbpassword=zabbix
Mkdir-p/etc/zabbix/alertscripts/etc/zabbix/externalscripts



PHP Configuration

Vim/etc/httpd/conf.d/zabbix.conf

Php_value max_execution_time 300php_value memory_limit 128mphp_value post_max_size 16Mphp_value upload_max_filesize 2mphp_value max_input_time 300php_value Date.timezone Asia/shanghai

Change PHP timezone (here If the step changes will be error)

Vim/etc/php.inidate.timezone = Asia/shanghai


Launch Apache

Chkconfig httpd onservice httpd start


Start Zabbix and Agent

Chkconfig zabbix-server onservice zabbix-server startchekconfig zabbix-agent onservice zabbix-agent start


Browser input Http://172.16.206.131/zabbix configuration

Click Next to detect PHP components, database and other matching, and finally enter the default account password Admin/zabbix login


This article from "Zengestudy" blog, declined reprint!

1, Zabbix RPM package 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.