Installation of the Zabbix Foundation

Source: Internet
Author: User
Tags snmp

1.zabbix is an open-source monitoring tool that can monitor many objects and more users. Now let's install Zabbix.

Before installing Zabbix, deploy lamp or lnmp in advance.

Zabbix can be obtained in the official website, address: http://www.zabbix.com/download

The Zabbix website provides us with three ways to install:

(1) Source code compilation and installation

        # tar -zxvf zabbix-3.2.1.tar.gz                  install both the server and agent, and support for putting data into MySQL data, you can use a configuration command similar to the following:         ./configure --enable-server  --enable-agent --with-mysql --enable-ipv6 --with-net-snmp --with-libcurl -- with-ssh2                 If you install only server and support data into MySQL data, you can use a configuration command similar to the following:         ./configure -- enable-server --with-mysql --with-net-snmp --with-libcurl                  If you install proxy only and support data into MySQL data, you can use a configuration command similar to the following:         ./configure --prefix=/usr --enable-proxy -- With-net-snmp --with-mysql --with-ssh2                 If you install only the agent, You can use a configuration command similar to the following:        ./configure --enable-agent                           then compile and install Zabbix to:        # make         # make install

(2) Configuring the Yum source installation

[[email protected] ~]# wget http://repo.zabbix.com/zabbix/2.2/rhel/7/x86_64/zabbix-release-2.2-1.el7.noarch.rpm [[E Mail protected] ~]# RPM-IVH zabbix-release-2.2-1.el7.noarch.rpm
[[email protected] ~]# yum clean all loaded plugin: Fastestmirror, langpacks cleaning up software Source: Base Extras updates Zabbix Zabb Ix-non-supported cleaning up everything cleaning up list of fastest mirrors [[email protected] ~]# Yu M Makecache

(3) RPM package download and install


2. Configure Zabbix-database, MySQL For example, you can use MySQL and pgsql

mariadb [(None)]> create database zabbix character set utf8; mariadb [(none)]> grant all on zabbix.* to  ' zbxuser ' @ ' localhost '   identified by  ' Zbxpass '; mariadb [(none)]> grant all on zabbix.* to  ' Zbxuser ' @ ' 192.168.%.% '   identified by  ' Zbxpass '; mariadb [(none)]> flush privileges; #连接测试 [[email protected] ~]# mysql - Uzbxuser -hlocalhost -penter password: welcome to the mariadb monitor.   Commands end with ; or \g.Your MariaDB connection id  is 4server version: 5.5.50-mariadb mariadb servercopyright  (c)  2000,  2016, oracle, mariadb corporation ab and others. type  ' help; '  or  ' \h '  for help. Type  ' \c '  to clear tHe current input statement. mariadb [(None)]> \qbye


3. Installing Zabbix

[[email protected] ~]# yum install zabbix  Zabbix-agent zabbix-get zabbix-sender zabbix-server zabbix-server-mysql zabbix-web  zabbix-web-mysql# generate Zabbix configuration file in httpd [[Email protected] zabbix]# systemctl restart  httpd.service [[email protected] zabbix]# ls /etc/httpd/conf.d/autoindex.conf   php.conf  README  userdir.conf  welcome.conf   zabbix.conf Create User: [[email protected] ~]# groupadd zabbix[[email protected] ~]#  useradd -g zabbix zabbix Note: On nodes that have both server and agent installed, it is recommended that you do not run the same user. source /usr/local/src/zabbix-3.0.1/database/mysql/schema.sql  #导入脚本文件到zabbix数据库source  /usr/local /src/zabbix-3.0.1/database/mysql/images.sql  #导入脚本文件到zabbix数据库source  /USR/LOCAL/SRC/ZABBIX-3.0.1/ database/mysql/data.sql  #导入脚本文件到zabbix数据库 




This article is from the "Linux Sailing" blog, make sure to keep this source http://jiayimeng.blog.51cto.com/10604001/1868975

Installation of the Zabbix Foundation

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.