Zabbix-- automatic monitoring

About zabbix

  zabbix is based on providing a distributed system monitoring and network monitoring capabilities WEB interface, enterprise-class open source solutions.
  zabbix can monitor various network parameters to ensure the safe operation of the server system; and to provide a flexible notification mechanism to allow system administrators to quickly locate / solve problems.
  Roughly zabbix consists of three parts: zabbix server, zabbix proxy (optional component), zabbix agent.

zabbix4.0

   server side: responsible for receiving the data sent by the client, and save them to your own database
   agent side: responsible for data collection at regular intervals client, and sent to the server-side
   agent sends a database of two modes:
    1. active mode: the client sends data at regular intervals to the server
    2. the passive mode: after waiting for a server sends a data request, the client sends to the server-side 


 zabbix consists of the following component parts


    1, Zabbix Server: transmission of agent responsible for receiving information reporting a core component, all configurations and operational statistics data by the organization;
    2, the Storage Database: dedicated to storing all the configuration information, and data gathered by ZABBIX;
    . 3 , Web interface: zabbix the GUI interface, usually with the Server running on the same host;
    4, proxy: optional components commonly used in the distributed monitoring environment, the agent monitoring data Server collects part of the monitoring terminal and unified sent to the Server side;
    5, Agent: deployed on the monitored host, is responsible for collecting local data and sent to the Proxy Server side or end;

zabbix4.0 installation

   Step 1: Install yum Source Database
    [MariaDB]
    name = MariaDB
    BaseURL = HTTP: //mirrors.ustc.edu.cn/mariadb/yum/10.3/centos7-amd64/
    gpgkey = HTTP: //mirrors.ustc.edu. CN / MariaDB / yum / the RPM-the GPG-KEY-MariaDB
    gpgcheck. 1 =
   second portion: mounting MariaDB database
    yum install MariaDB
   Step 2: install the source zabbix4.0
    rpm -ivh https://repo.zabbix.com/zabbix /4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpm
   Step Four: install the components required ZABBIX
    yum the install ZABBIX-MySQL ZABBIX Web-Agent-Server-ZABBIX-MySQL
   Step 5: Create database and user
    #mysql -uroot--proot
    MySQL> Create Character Database ZABBIX UTF8 SET COLLATE utf8_bin; #collate utf8_bin-- strictly case-sensitive
    MySQL> All Grant privileges to zabbix ON zabbix * @ localhost IDENTIFIED by 'zabbix';.
    MySQL> quit;
   Step Six: Import zabbix server required tables and data
    zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix
   Step Seven: Edit the file /etc/zabbix/zabbix_server.conf
    DBPassword = zabbix
   Step eight: District /etc/httpd/conf.d/zabbix.conf editing a file set
    php_value date.timezone Europe / Riga (Open comment)
   Step 9: Start the service and boot from Kai
    systemctl restart zabbix-Server Agent zabbix-httpd
    systemctl enable zabbix-httpd Server Agent zabbix-
   Step 10: a browser to access
    http: // server_ip / zabbix 
 

There are solutions garbled box


    1. In the windows of the C: \ Windows file simsun.ttc find Typeface under Fonts \
     uploaded to the server, linux
     cd / usr / report this content share / zabbix / Fonts
    2. The original font backup
     mv graphfont.ttf graphfont.ttf.bak
    3 put the windows fonts renamed graphfont.ttf
     mv simsun.ttc graphfont.ttf
   

 Add Client


     vim /etc/zabbix/zabbix_agentd.conf
     modify the following parameters:
     Server = 127.0.0.1 (end point server IP)
     ServerActive = 127.0.0.1 (end point server IP)
     the Hostname = ZABBIX server
 

Custom Monitor needs to change items


  Client:
     vim /etc/zabbix/zabbix-agent.conf
     UserParameter = proc.mysql, ps -ef | grep mysql | wc -l # proc.mysql is the name of a custom monitor ps -ef | grep mysql | wc -l is to monitor the content can also execute scripts (itself a shell command).

   # Implementation of the script with bash script_name.sh

 


distributed

proxy end:

   Step 1: Install yum Source Database
      [MariaDB]
      name = MariaDB
      BaseURL = HTTP: //mirrors.ustc.edu.cn/mariadb/yum/10.3/centos7-amd64/
      gpgkey = HTTP: //mirrors.ustc.edu. CN / MariaDB / yum / the RPM-the GPG-KEY-MariaDB
      gpgcheck. 1 =
   second portion: mounting MariaDB database
      yum install MariaDB
   Step 2: install the source zabbix4.0
      rpm -ivh https://repo.zabbix.com/zabbix /4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpm
   Step Four: install the components required ZABBIX
      yum the install ZABBIX Proxy-
   Fifth step: editing files /etc/zabbix/zabbix_proxy.conf
      Server = 192.168.254.13 (IP Proxy point Server)
      the Hostname = ZABBIX Proxy
      DBName = zabbix_proxy
      DBUser = ZABBIX
      DBPassword = zabbix
   step Six: restart the service
      service zabbix-proxy restart
   step Seven: create a database and user
      the create database Character zabbix_proxy the SET utf8 COLLATE utf8_bin;
      Grant * All privileges ON zabbix_proxy to zabbix @ localhost IDENTIFIED by 'zabbix';.
   eighth step: Extract the files into the database
      zcat /usr/share/doc/zabbix-proxy-mysql-4.0.6/schema.sql.gz | mysql -uzabbix -pzabbix zabbix_proxy client:
    

   Step 9: terminal profile modification agent
      Vim /etc/zabbix/zabbix-agent.conf
       Server = 192.168.254.62 (point Proxy)
       ServerActive = 192.168.254.62 (point Proxy)
       HostnameItem = system.hostname
   Step 10: Restart the client
      service zabbix-agent restart
   
   eleventh step: see the word document distributed
 

Guess you like

Origin www.cnblogs.com/getbird/p/11402231.html
Recommended