CENTOS7 installation Zabbix

Source: Internet
Author: User
----------------------------------------------------------
Installing Zabbix Server
Login to MySQL
[Root@localhost ~]# Mysql-uroot-p
Creating a Database
Mysql> CREATE database Zabbix character set UTF8;
To create a user:
Mysql> grant all privileges in *.* to ' Zabbix ' @ '% ' identified by ' haitaoliu0617* ' with GRANT OPTION;
Refresh Authorization
mysql> flush Privileges;
--------------------------------------------
Import MySQL into database under the Zabbix-3.4.7.tar.gz source code directory
Import Schema.sql First
Then import Images.sql
Finally import Data.sql

----------------------------------------------------------------

Create a user account
[Root@localhost zabbix-3.4.7]# Groupadd Zabbix
[Root@localhost zabbix-3.4.7]# useradd-g Zabbix Zabbix
----------------------------------------------------------------
Installation dependencies
[Root@localhost ~]# yum install net-snmp-devel libxml2-devel
[Root@localhost src]# tar-zxf zabbix-3.4.7.tar.gz
[Root@localhost src]# CD zabbix-3.4.7
[Root@localhost zabbix-3.4.7]#./configure--enable-server--enable-agent--with-mysql--enable-ipv6--WITH-NET-SNMP- -with-libcurl--WITH-LIBXML2

Error
Configure:error:MySQL Library not found
Problem solving:
Yum Install Mysql-devel

Error
Configure:error:Unable to use Libevent (libevent check failed)
Problem solving
[Root@localhost zabbix-3.4.7]# Yum Install Libevent-devel
https://blog.csdn.net/xulqlgwy1230/article/details/78612340

[Root@localhost zabbix-3.4.7]# make && make install
---------------------------------------------------------------------

Configuration
[Root@localhost frontends]# vi/usr/local/etc/zabbix_server.conf
dbhost=127.0.0.1
Dbname=zabbix
Dbuser=zabbix
Dbpassword=haitaoliu0617*
dbport=3306

[Root@localhost ~]# vi/usr/local/etc/zabbix_agentd.conf
server=192.168.0.115
serveractive=192.168.0.115
hostname=192.168.0.115
-----------------------------------------------------
Modify PHP Configuration
Max_execution_time = 300
Memory_limit = 128M
Post_max_size = 16M
Upload_max_filesize = 2M
Max_input_time = 300
Date.timezone PRC
Always_populate_raw_post_data =-1


-----------------------------------------------------
To start the daemon process
Start Zabbix_server on the Zabbix server side.
[Root@localhost src]# Zabbix_server
Start the zabbix_agentd on all the monitored machines.
[Root@localhost src]# Zabbix_agentd
-----------------------------------------------------


Installing the Zabbix Web interface
Find zabbix-3.4.7/frontends/php in the source package
[Root@localhost frontends]# cp-r./php/var/www/


Just follow the steps, okay?


------------------------------------------------------
installed on the monitored machine
Create a user
[Root@localhost zabbix-3.4.7]# Groupadd Zabbix
[Root@localhost zabbix-3.4.7]# useradd-g Zabbix Zabbix


Yum Install gcc gcc-c++
[root@192 src]# tar-zxf zabbix-3.4.7.tar.gz
[root@192 src]# CD zabbix-3.4.7
[root@192 zabbix-3.4.7]#./configure--enable-agent
Error: Configure:error:Unable to use Libpcre (Libpcre check failed)
Solution: Yum Install pcre-devel-y

[root@192 zabbix-3.4.7]# make && make install

Configuration:
server=192.168.0.115
serveractive=192.168.0.115
hostname=192.168.0.116
-----------------------------------------------------
[root@192 tmp]# Killall Zabbix_agentd
[root@192 tmp]# Zabbix_agentd





Reference
Https://www.zabbix.com/documentation/3.4/zh/manual/installation/install
http://www.ttlsa.com/zabbix/install-zabbix-on-linux-5-ttlsa/

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.