centos7 deployment zabbix3.4

Application Environment : 

  About ZABBIX :

     zabbix open a powerful open source monitoring tools, the same type as well as nagios, ganglia, cacti and other monitoring tools, over the past year by Google Trends to know the relative popularity zabbix world:

     

 

  Hardware Specifications (taken from the official website):

     

 

  Mounting platform (taken from the official website):   

     Linux / IBM AIX / FreeBSD / NetBSD / OpenBSD / HP-UX / Mac OS X / Solaris // to deploy server and agent

     Windows: all desktop and server versions since XP (Zabbix agent only) // windows platform can be installed only agent, is "being monitored."

  Database (taken from the official website):

     

  Front-end version :

     

 

Installation Environment :

     A CentOS 7.4 virtual machine, configured LAMP environment [Linux / Apache / MySQL / PHP]

     

 

Installation steps :

1. Install MySQL

  slightly

 

2. Install Apache and PHP

1
2
[root@server-11 ~] # yum install httpd
[root@server-11 ~] # yum install php-common php-gd php-mbstring php-xml php-bcmath php-mysql php-cli php-devel php-pear

 

3. Install Zabbix 3.4

 3.1 Installation of Repo zabbix

    ~]# rpm -i http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-2.el7.noarch.rpm 

 3.2 Installation Services zabbix end of the interface end, monitoring client

   ~]# yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent 

 3.3 Creating a database zabbix

   ~]# mysql -uroot -p 

   mysql> create database zabbix character set utf8 collate utf8_bin; 

   mysql> grant all on zabbix.* to zabbix@'localhost' identified by 'zabbix'; 

   mysql> flush privileges; 

   mysql> \ q // exit

 3.4 import table structure and data

   ~]# zcat /usr/share/doc/zabbix-server-mysql-3.4.6/create.sql.gz |mysql -uzabbix -p zabbix 

 3.5 zabbix server configuration database information

   ~]# vim /etc/zabbix/zabbix_server.conf 

  Open or modify the following keywords:

    = Localhost DBHost
    DBName = zabbix
    DBUser = zabbix
    DBPassword = zabbix // modify according to their own definition of information

 3.6 zabbix distal modify the time zone information configuration

   ~]# vim /etc/httpd/conf.d/zabbix.conf 

   

 3.7 Start Service

   ~]# systemctl start httpd 

   ~]# systemctl start zabbix-server 

   ~]# systemctl start zabbix-agent 

 3.8 configure web interface

  First visit http: // SERVER_IP / zabbix, jump out as follows:

   

   

   

   

   

   

 Log in Zabbix 3.9

  Zabbix默认账户:Admin ,默认密码:zabbix

   

   

 3.10 开启本机监控

   

   

   

Guess you like

Origin www.cnblogs.com/jians/p/12155158.html